CI: run zizmor
This commit is contained in:
parent
0f71ee73cf
commit
1bc0a28e35
24
.github/workflows/test.yml
vendored
24
.github/workflows/test.yml
vendored
@ -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
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user