Bump github/codeql-action from 3 to 4 #2
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 security analysis of the TS/React source (XSS, injection, unsafe DOM, | |
| # taint flows). Runs on every push/PR to main and weekly so newly-added query | |
| # rules catch old code too. Results land in the repo's Security → Code scanning tab. | |
| on: | |
| push: | |
| branches: [main] | |
| pull_request: | |
| branches: [main] | |
| schedule: | |
| - cron: "0 6 * * 1" # Mondays 06:00 UTC | |
| permissions: | |
| contents: read | |
| security-events: write # upload scan results | |
| jobs: | |
| analyze: | |
| name: Analyze (javascript-typescript) | |
| runs-on: ubuntu-latest | |
| steps: | |
| - uses: actions/checkout@v7 | |
| - uses: github/codeql-action/init@v4 | |
| with: | |
| languages: javascript-typescript | |
| queries: security-extended | |
| - uses: github/codeql-action/analyze@v4 | |
| with: | |
| category: "/language:javascript-typescript" |