Security Analysis #9
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: Security Analysis | |
| on: | |
| push: | |
| branches: [ master, main ] | |
| pull_request: | |
| branches: [ master, main ] | |
| schedule: | |
| - cron: '0 6 * * 1' | |
| jobs: | |
| codeql: | |
| name: CodeQL Analysis | |
| runs-on: ubuntu-latest | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| strategy: | |
| matrix: | |
| language: [ 'python', 'javascript' ] | |
| steps: | |
| - uses: actions/checkout@v4 | |
| with: | |
| fetch-depth: 0 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v3 | |
| with: | |
| languages: ${{ matrix.language }} | |
| config-file: ./.github/codeql/codeql-config.yml | |
| - name: Install dependencies (Python) | |
| if: matrix.language == 'python' | |
| working-directory: backend | |
| run: | | |
| pip install uv | |
| uv sync --all-extras --dev | |
| - name: Install dependencies (JS) | |
| working-directory: frontend | |
| if: matrix.language == 'javascript' | |
| run: | | |
| npm ci | |
| - name: Perform CodeQL Analysis | |
| uses: github/codeql-action/analyze@v3 |