CodeQL #204
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: | |
| # Weekly run catches advisories that GitHub's CodeQL bundle | |
| # ships between PR-driven scans. | |
| - cron: "37 6 * * 1" | |
| permissions: | |
| contents: read | |
| security-events: write # upload SARIF to the Security tab | |
| actions: read | |
| jobs: | |
| analyze: | |
| name: analyze go | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: actions/setup-go@v7 | |
| with: | |
| go-version: "1.25" | |
| cache: true | |
| - name: initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: go | |
| build-mode: autobuild | |
| queries: security-extended | |
| - name: analyze | |
| uses: github/codeql-action/analyze@v4 | |
| with: | |
| category: "/language:go" |