codeql #17
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
| # GitHub CodeQL — free static security analysis from GitHub. | |
| # Complements ruff (style) and pip-audit (deps) by finding real | |
| # security issues in code: SQL injection, command injection, hardcoded | |
| # secrets, unsafe deserialization, XSS in JS, etc. | |
| name: codeql | |
| on: | |
| push: | |
| branches: [main, master] | |
| pull_request: | |
| branches: [main, master] | |
| schedule: | |
| - cron: "0 7 * * 1" # weekly Monday 07:00 UTC | |
| jobs: | |
| analyze: | |
| runs-on: ubuntu-latest | |
| permissions: | |
| security-events: write | |
| contents: read | |
| actions: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: ["python", "javascript"] | |
| steps: | |
| - uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4 | |
| - uses: github/codeql-action/init@03e4368ac7daa2bd82b3e85262f3bf87ee112f57 # v3 | |
| with: | |
| languages: ${{ matrix.language }} | |
| - uses: github/codeql-action/analyze@03e4368ac7daa2bd82b3e85262f3bf87ee112f57 # v3 | |
| with: | |
| category: "/language:${{ matrix.language }}" |