| 1 |
# https://github.com/woodruffw/zizmor |
| 2 |
name: Zizmor |
| 3 |
|
| 4 |
on: |
| 5 |
push: |
| 6 |
branches: ["main"] |
| 7 |
pull_request: |
| 8 |
branches: ["*"] |
| 9 |
|
| 10 |
permissions: |
| 11 |
contents: read |
| 12 |
|
| 13 |
|
| 14 |
jobs: |
| 15 |
zizmor: |
| 16 |
name: Zizmor latest via PyPI |
| 17 |
runs-on: ubuntu-latest |
| 18 |
permissions: |
| 19 |
security-events: write |
| 20 |
steps: |
| 21 |
- name: Checkout repository |
| 22 |
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2 |
| 23 |
with: |
| 24 |
persist-credentials: false |
| 25 |
- uses: hynek/setup-cached-uv@757bedc3f972eb7227a1aa657651f15a8527c817 # v2.3.0 |
| 26 |
|
| 27 |
- name: Run zizmor 🌈 |
| 28 |
run: uvx zizmor --format sarif . > results.sarif |
| 29 |
env: |
| 30 |
GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} |
| 31 |
|
| 32 |
- name: Upload SARIF file |
| 33 |
uses: github/codeql-action/upload-sarif@0d579ffd059c29b07949a3cce3983f0780820c98 # v4.32.6 |
| 34 |
with: |
| 35 |
# Path to SARIF file relative to the root of the repository |
| 36 |
sarif_file: results.sarif |
| 37 |
# Optional category for the results |
| 38 |
# Used to differentiate multiple results for one commit |
| 39 |
category: zizmor |