| name: CodeQL |
| |
| on: |
| push: |
| branches: ["main"] |
| pull_request: |
| branches: ["main"] |
| schedule: |
| - cron: "27 4 * * 1" |
| |
| permissions: {} |
| |
| jobs: |
| analyze: |
| name: Analyze (${{ matrix.language }}) |
| runs-on: ubuntu-latest |
| timeout-minutes: 30 |
| permissions: |
| security-events: write |
| packages: read |
| actions: read |
| contents: read |
| |
| strategy: |
| fail-fast: false |
| matrix: |
| language: ["python"] |
| |
| steps: |
| - name: Checkout |
| uses: actions/checkout@08c6903cd8c0fde910a37f88322edcfb5dd907a8 # v5.0.0 |
| with: |
| persist-credentials: false |
| |
| - name: Initialize CodeQL |
| uses: github/codeql-action/init@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 |
| with: |
| languages: ${{ matrix.language }} |
| queries: security-extended,security-and-quality |
| |
| - name: Perform CodeQL Analysis |
| uses: github/codeql-action/analyze@95e58e9a2cdfd71adc6e0353d5c52f41a045d225 # v4.35.2 |
| with: |
| category: "/language:${{ matrix.language }}" |