Merge pull request #127 from b7n0de/release/v3.7.0-changelog-version #385
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 | |
| # Static analysis (SAST) for the Python core. Advanced setup (a committed workflow) is used | |
| # rather than GitHub "default setup" precisely because default setup cannot be SHA-pinned, and | |
| # this repo pins every action to a full commit SHA. Pure Python needs no build step. | |
| # Re-pin the codeql-action SHA when v4 advances (Dependabot bumps the pin + comment). | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| - cron: "0 6 * * 1" # weekly, catches newly-published queries | |
| permissions: | |
| contents: read | |
| jobs: | |
| analyze: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read # checkout the repo (a job-level permissions block REPLACES top-level) | |
| security-events: write # upload SARIF alerts | |
| steps: | |
| - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3 | |
| with: | |
| languages: python | |
| queries: security-extended | |
| - name: Perform CodeQL analysis | |
| uses: github/codeql-action/analyze@e4fba868fa4b1b91e1fdab776edc8cfbe6e9fb81 # v4.37.3 |