updated #5
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", "master"] | |
| pull_request: | |
| branches: ["main", "master"] | |
| schedule: | |
| - cron: "24 4 * * 1" | |
| permissions: | |
| actions: read | |
| contents: read | |
| security-events: write | |
| jobs: | |
| analyze: | |
| name: Analyze (${{ matrix.language }}) | |
| # Keep advanced CodeQL opt-in to avoid conflict with GitHub "Default setup". | |
| # Enable this workflow by setting repository variable CODEQL_ADVANCED_SETUP=true | |
| # and disabling Default setup in Code scanning settings. | |
| if: ${{ vars.CODEQL_ADVANCED_SETUP == 'true' }} | |
| runs-on: ubuntu-latest | |
| strategy: | |
| fail-fast: false | |
| matrix: | |
| language: [python, javascript-typescript, rust] | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@v5 | |
| - name: Initialize CodeQL | |
| uses: github/codeql-action/init@v4 | |
| with: | |
| languages: ${{ matrix.language }} | |
| build-mode: none | |
| - name: Analyze | |
| uses: github/codeql-action/analyze@v4 |