Workflow Security Audit (zizmor) #25
This file contains hidden or 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
| # zizmor — static analysis for GitHub Actions workflows | |
| # Docs: https://docs.zizmor.sh + https://github.com/zizmorcore/zizmor-action | |
| name: Workflow Security Audit (zizmor) | |
| on: | |
| push: | |
| branches: ["main"] | |
| paths: | |
| - ".github/workflows/**" | |
| - ".github/dependabot.yml" | |
| pull_request: | |
| paths: | |
| - ".github/workflows/**" | |
| - ".github/dependabot.yml" | |
| schedule: | |
| - cron: "13 6 * * 1" # Mondays 06:13 UTC | |
| permissions: {} | |
| jobs: | |
| zizmor: | |
| name: zizmor workflow audit | |
| runs-on: ubuntu-latest | |
| permissions: | |
| contents: read | |
| security-events: write # SARIF upload (no-op on private without GHAS) | |
| steps: | |
| - name: Checkout | |
| uses: actions/checkout@9c091bb21b7c1c1d1991bb908d89e4e9dddfe3e0 # v7.0.0 | |
| with: | |
| persist-credentials: false | |
| - name: Run zizmor | |
| env: | |
| GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} | |
| uses: zizmorcore/zizmor-action@192e21d79ab29983730a13d1382995c2307fbcaa # v0.5.7 | |
| with: | |
| persona: regular | |
| advanced-security: false | |
| annotations: true | |