Make the v1.0.1 CodeQL gate repository-wide #19
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
| name: CodeQL | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| - cron: "23 4 * * 1" | |
| permissions: | |
| contents: 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@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@3b0bd1d116c0bde30213346b22d4f634d96a2fb0 # v3 | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: none | |
| - name: Analyze | |
| id: analyze | |
| uses: github/codeql-action/analyze@3b0bd1d116c0bde30213346b22d4f634d96a2fb0 # v3 | |
| with: | |
| output: codeql-results | |
| - name: Require clean CodeQL results | |
| run: python scripts/check_codeql_sarif.py "${{ steps.analyze.outputs.sarif-output }}" |