security: fix rust-secrets — 12.5% of Rust repos were never scanned #1062
Workflow file for this run
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # SPDX-License-Identifier: MPL-2.0 | |
| name: CodeQL Security Analysis | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| schedule: | |
| # Estate cut 3 (standards#233): weekly → monthly. 1st of each month | |
| # at 06:00 UTC. Owner-decision Option B (2026-05-30): ~85% savings | |
| # (~46k Actions-min/yr) with bounded 30-day CVE-detection floor. | |
| # PR-trigger runs (push + pull_request) are kept regardless — this | |
| # cut only changes the scheduled-baseline cadence. | |
| - cron: '0 6 1 * *' | |
| # Estate guardrail: serialise superseded runs so re-pushes / rebased PR | |
| # updates do not pile up against the shared account-wide Actions pool. | |
| # | |
| # cancel-in-progress is DELIBERATELY false: CodeQL is a REQUIRED | |
| # code-scanning tool in the estate branch rulesets (a result must upload | |
| # for the head commit before a PR can merge). A cancelled run uploads | |
| # nothing, leaving branch protection stuck "expecting 1 result from CodeQL | |
| # for <sha>" indefinitely — the ghost check that blocks PRs for hours/days. | |
| # Queue rather than cancel so the latest commit's scan always completes and | |
| # uploads. (Non-required read-only workflows may still cancel-in-progress.) | |
| concurrency: | |
| group: ${{ github.workflow }}-${{ github.ref }} | |
| cancel-in-progress: false | |
| permissions: | |
| contents: read | |
| jobs: | |
| analyze: | |
| timeout-minutes: 20 | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| include: | |
| - language: javascript-typescript | |
| build-mode: none | |
| - language: actions | |
| build-mode: none | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@7188fc363630916deb702c7fdcf4e481b751f97a # v3 | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: ${{ matrix.build-mode }} | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@7188fc363630916deb702c7fdcf4e481b751f97a # v3 | |
| with: | |
| category: "/language:${{ matrix.language }}" |