From 24959785dc330f354824f91d8b54dab7dbacc72f Mon Sep 17 00:00:00 2001 From: Toni Bergholm Date: Fri, 10 Jul 2026 00:06:10 +0300 Subject: [PATCH] ci: add CodeQL security scanning (rust + actions, build-mode none) MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Scans the Rust source and the GitHub Actions workflows for security issues, on push/PR to main plus a weekly schedule. Rust uses build-mode: none (source analysis, no cargo build in the scan job). Left out of the initial launch pending verification that CodeQL's newer Rust support runs green here — this PR's own CodeQL check is that verification before it reaches main. Claude-Session: https://claude.ai/code/session_01Qy1An368jzaKqdBBRdcfV7 --- .github/workflows/codeql.yml | 38 ++++++++++++++++++++++++++++++++++++ 1 file changed, 38 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 00000000..e511d4c9 --- /dev/null +++ b/.github/workflows/codeql.yml @@ -0,0 +1,38 @@ +name: codeql + +on: + push: + branches: [main] + pull_request: + branches: [main] + schedule: + - cron: "23 5 * * 1" + +permissions: + contents: read + +jobs: + analyze: + name: analyze (${{ matrix.language }}) + runs-on: ubuntu-latest + permissions: + security-events: write + actions: read + contents: read + strategy: + fail-fast: false + matrix: + include: + - language: rust + build-mode: none + - language: actions + build-mode: none + steps: + - uses: actions/checkout@v4 + - uses: github/codeql-action/init@v3 + with: + languages: ${{ matrix.language }} + build-mode: ${{ matrix.build-mode }} + - uses: github/codeql-action/analyze@v3 + with: + category: "/language:${{ matrix.language }}"