CI: run zizmor

This commit is contained in:
Christoph Reiter 2024-12-13 20:50:27 +01:00
parent 0f71ee73cf
commit 1bc0a28e35

View File

@ -38,3 +38,27 @@ jobs:
- name: Run tests
run: |
python -m poetry run pytest
zizmor:
runs-on: ubuntu-24.04
permissions:
contents: read
security-events: write
steps:
- name: Checkout repository
uses: actions/checkout@v4
with:
persist-credentials: false
- name: Run zizmor
run: pipx run zizmor --format sarif . > results.sarif
env:
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}
- name: Upload SARIF file
uses: github/codeql-action/upload-sarif@v3
with:
sarif_file: results.sarif
category: zizmor