Repository navigation
Prepare 1.7.9 with managed Jev, workspace routing, and graph fixes #1391
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
| name: CodeQL | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| # Stacked PRs must receive the same security gate before reaching main. | |
| branches: [main, "codex/**"] | |
| schedule: | |
| - cron: "23 4 * * 1" | |
| permissions: | |
| contents: read | |
| packages: read | |
| security-events: write | |
| jobs: | |
| analyze: | |
| name: Analyze ${{ matrix.language }} | |
| runs-on: ubuntu-latest | |
| # Pull-request analyses otherwise use diff-informed queries, whose SARIF | |
| # intentionally omits findings outside changed lines. The release gate | |
| # must inspect complete raw SARIF on both pull requests and pushes. | |
| env: | |
| CODEQL_ACTION_DIFF_INFORMED_QUERIES: "false" | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: ["python", "javascript-typescript"] | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4 | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: none | |
| config-file: ./.github/codeql/codeql-config.yml | |
| packs: ${{ matrix.language == 'python' && 'codeql/python-queries:AlertSuppression.ql' || 'codeql/javascript-queries:AlertSuppression.ql' }} | |
| - name: Analyze | |
| id: analyze | |
| uses: github/codeql-action/analyze@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4 | |
| with: | |
| output: codeql-results | |
| upload: never | |
| category: ".github/workflows/codeql.yml:analyze/language:${{ matrix.language }}" | |
| - name: Require clean CodeQL results | |
| run: python scripts/check_codeql_sarif.py "${{ steps.analyze.outputs.sarif-output }}" | |
| - name: Filter approved non-security digest results | |
| run: >- | |
| python scripts/check_codeql_sarif.py --filter-approved | |
| "${{ steps.analyze.outputs.sarif-output }}" codeql-results-filtered | |
| - name: Upload CodeQL results | |
| uses: github/codeql-action/upload-sarif@2892aa5e19bbd11bc0cff5427e3b750a04d9e3c2 # v4 | |
| with: | |
| sarif_file: codeql-results-filtered | |
| category: ".github/workflows/codeql.yml:analyze/language:${{ matrix.language }}" | |
| wait-for-processing: true |