ci: add pr read permissions for pytest job #43
This file contains 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: Static code analysis | |
on: | |
push: | |
branches: | |
- main | |
pull_request: | |
jobs: | |
analyze: | |
name: Analyze ${{ matrix.language }} code | |
runs-on: ubuntu-latest | |
permissions: | |
security-events: write | |
packages: read | |
strategy: | |
fail-fast: false | |
matrix: | |
include: | |
- language: python | |
build-mode: none | |
steps: | |
- uses: actions/checkout@v4 | |
- uses: github/codeql-action/init@v3 | |
with: | |
languages: ${{ matrix.language }} | |
build-mode: ${{ matrix.build-mode }} | |
- uses: github/codeql-action/analyze@v3 | |
with: | |
category: "/language:${{matrix.language}}" |