Merge pull request #64 from cohm/exam-markers-from-kursplan #105
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-native static analysis. Catches XSS, prototype pollution, unsafe | |
| # regexes, and other common JS/TS issues that lint won't flag. | |
| # | |
| # Runs on PRs, on every push to main, and on a weekly cron so newly-published | |
| # rules find existing code without waiting for the next PR. | |
| name: CodeQL | |
| on: | |
| push: | |
| branches: | |
| - main | |
| pull_request: | |
| branches: | |
| - main | |
| schedule: | |
| # Mondays 05:30 UTC. Off-peak; far from typical PR traffic. | |
| - cron: "30 5 * * 1" | |
| permissions: | |
| contents: read | |
| jobs: | |
| analyze: | |
| name: Analyze (${{ matrix.language }}) | |
| runs-on: ubuntu-latest | |
| permissions: | |
| security-events: write | |
| packages: read | |
| actions: read | |
| contents: read | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| # `javascript-typescript` covers both JS and TS in one analysis pass. | |
| language: [javascript-typescript] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v7 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: ${{ matrix.language }} | |
| # `security-extended` adds a few rule packs over the default set | |
| # (e.g. extra taint-tracking) without going to the full | |
| # `security-and-quality` (which is noisy with style nits). | |
| queries: security-extended | |
| - name: Autobuild | |
| uses: github/codeql-action/autobuild@v4 | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v4 | |
| with: | |
| category: "/language:${{ matrix.language }}" |