From 9f7caa55985763315d3fc083b0168b1c34c85362 Mon Sep 17 00:00:00 2001 From: zerosnacks Date: Wed, 10 Sep 2025 16:15:08 +0200 Subject: [PATCH 1/3] enable CodeQL --- .github/codeql.yml | 43 +++++++++++++++++++++++++++++++++++++++++++ 1 file changed, 43 insertions(+) create mode 100644 .github/codeql.yml diff --git a/.github/codeql.yml b/.github/codeql.yml new file mode 100644 index 0000000000000..748fc29bd94eb --- /dev/null +++ b/.github/codeql.yml @@ -0,0 +1,43 @@ +name: CodeQL + +on: + push: + branches: ["master"] + pull_request: + branches: ["master"] + schedule: + - cron: "30 12 * * 0" + +jobs: + analyze: + name: Analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + permissions: + security-events: write + packages: read + actions: read + contents: read + + strategy: + fail-fast: false + matrix: + include: + - language: actions + build-mode: none + - language: rust + build-mode: none + + steps: + - name: Checkout repository + uses: actions/checkout@v4 + + - name: Initialize CodeQL + uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + + - name: Perform CodeQL Analysis + uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{matrix.language}}" From 85d982a95a6fd5149442f78957d1c2631c87f1b1 Mon Sep 17 00:00:00 2001 From: zerosnacks Date: Wed, 10 Sep 2025 16:22:09 +0200 Subject: [PATCH 2/3] move into workflow --- .github/{ => workflows}/codeql.yml | 0 1 file changed, 0 insertions(+), 0 deletions(-) rename .github/{ => workflows}/codeql.yml (100%) diff --git a/.github/codeql.yml b/.github/workflows/codeql.yml similarity index 100% rename from .github/codeql.yml rename to .github/workflows/codeql.yml From 88a995ec474bf1c2ba2bde07d802ad9c4aa59989 Mon Sep 17 00:00:00 2001 From: zerosnacks Date: Wed, 10 Sep 2025 16:38:38 +0200 Subject: [PATCH 3/3] perform actions scanning first, can add Rust later as it requires more configuration, add daily cron --- .github/workflows/codeql.yml | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/.github/workflows/codeql.yml b/.github/workflows/codeql.yml index 748fc29bd94eb..92fb9784b73be 100644 --- a/.github/workflows/codeql.yml +++ b/.github/workflows/codeql.yml @@ -6,7 +6,12 @@ on: pull_request: branches: ["master"] schedule: - - cron: "30 12 * * 0" + - cron: "0 0 * * *" + workflow_dispatch: + +concurrency: + group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} + cancel-in-progress: true jobs: analyze: @@ -24,12 +29,10 @@ jobs: include: - language: actions build-mode: none - - language: rust - build-mode: none steps: - name: Checkout repository - uses: actions/checkout@v4 + uses: actions/checkout@v5 - name: Initialize CodeQL uses: github/codeql-action/init@v3