From c27e6cabc0b27f9a559df2c46be6990b2d3dc933 Mon Sep 17 00:00:00 2001 From: dail8859 Date: Wed, 20 Sep 2023 14:09:26 -0400 Subject: [PATCH 1/5] Create codeql.yml --- .github/workflows/codeql.yml | 60 ++++++++++++++++++++++++++++++++++++ 1 file changed, 60 insertions(+) create mode 100644 .github/workflows/codeql.yml diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml new file mode 100644 index 000000000..e3cdd2f39 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,60 @@ +name: "CodeQL" + +on: + push: + branches: [ "master" ] + pull_request: + # The branches below must be a subset of the branches above + branches: [ "master" ] + schedule: + - cron: '18 7 * * 1' + +jobs: + analyze: + name: Analyze + runs-on: 'ubuntu-latest' + timeout-minutes: 360 + permissions: + actions: read + contents: read + security-events: write + + strategy: + fail-fast: false + matrix: + language: [ 'cpp' ] + + steps: + - name: Checkout repository + uses: actions/checkout@v3 + with: + submodules: true + + - name: Install Qt + uses: jurplel/install-qt-action@v3 + with: + version: "6.5" + modules: "qt5compat" + + - name: Setup + run: | + sudo apt-get -y update + sudo apt-get install libxkbcommon-dev libxkbcommon-x11-0 fuse libxcb-cursor-dev gdb build-essential + + # Initializes the CodeQL tools for scanning. + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + + - name: Build + run: | + mkdir build + cd build + qmake "../src/NotepadNext.pro" "DISTRIBUTION=AppImage" + make -j$(nproc) + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v2 + with: + category: "/language:${{matrix.language}}" From 7aaaecd81dce530ed46769fae187d12025cfa28e Mon Sep 17 00:00:00 2001 From: dail8859 Date: Wed, 19 Jun 2024 15:52:03 -0400 Subject: [PATCH 2/5] Update codeql.yml --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index e3cdd2f39..4cfd3c8e1 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -12,7 +12,7 @@ on: jobs: analyze: name: Analyze - runs-on: 'ubuntu-latest' + runs-on: 'ubuntu-20.04' timeout-minutes: 360 permissions: actions: read From f0a21744a1ddf1be0b7d530e9284d11ddad453f3 Mon Sep 17 00:00:00 2001 From: dail8859 Date: Mon, 15 Jul 2024 21:37:20 -0400 Subject: [PATCH 3/5] Update codeql.yml --- .github/workflows/codeql.yml | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 4cfd3c8e1..b05a1956e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -12,7 +12,7 @@ on: jobs: analyze: name: Analyze - runs-on: 'ubuntu-20.04' + runs-on: 'ubuntu-latest' timeout-minutes: 360 permissions: actions: read @@ -38,8 +38,8 @@ jobs: - name: Setup run: | - sudo apt-get -y update - sudo apt-get install libxkbcommon-dev libxkbcommon-x11-0 fuse libxcb-cursor-dev gdb build-essential + echo "DISTRIBUTION=AppImage" >> "$GITHUB_ENV" + sudo apt-get install libxkbcommon-dev libxkbcommon-x11-0 fuse libxcb-cursor-dev # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL @@ -51,7 +51,7 @@ jobs: run: | mkdir build cd build - qmake "../src/NotepadNext.pro" "DISTRIBUTION=AppImage" + qmake ../src/NotepadNext.pro "DISTRIBUTION=$DISTRIBUTION" make -j$(nproc) - name: Perform CodeQL Analysis From 89c299e65c426b0e60d385b94495e623a09e4ff1 Mon Sep 17 00:00:00 2001 From: dail8859 Date: Mon, 15 Jul 2024 21:53:10 -0400 Subject: [PATCH 4/5] Update codeql.yml --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index b05a1956e..52feb5b82 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -51,7 +51,7 @@ jobs: run: | mkdir build cd build - qmake ../src/NotepadNext.pro "DISTRIBUTION=$DISTRIBUTION" + qmake ../src/NotepadNext.pro "DISTRIBUTION=$DISTRIBUTION" -r -spec linux-g++ make -j$(nproc) - name: Perform CodeQL Analysis From 2a87882339ec6b22d013c9b71a4cc06ae155a6f9 Mon Sep 17 00:00:00 2001 From: dail8859 Date: Sun, 1 Sep 2024 22:12:40 -0400 Subject: [PATCH 5/5] Update codeql.yml --- .github/workflows/codeql.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 52feb5b82..b05a1956e 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -51,7 +51,7 @@ jobs: run: | mkdir build cd build - qmake ../src/NotepadNext.pro "DISTRIBUTION=$DISTRIBUTION" -r -spec linux-g++ + qmake ../src/NotepadNext.pro "DISTRIBUTION=$DISTRIBUTION" make -j$(nproc) - name: Perform CodeQL Analysis