Skip to content

Create zizmor.yaml

Create zizmor.yaml #3

Workflow file for this run

name: zizmor workflow audits
on:
push:
pull_request:
workflow_dispatch:
concurrency:
group: ${{ github.workflow }}-${{ github.ref }}
cancel-in-progress: true
jobs:
zizmor-workflow-audits:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
persist-credentials: false
- name: zizmor workflow audits
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
run: |
pip install zizmor
zizmor . --gh-token $GITHUB_TOKEN |& tee summary.md
exit_codes="${PIPESTATUS[0]}"
printf '%b\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY
cat summary.md >> $GITHUB_STEP_SUMMARY
printf '%b' "\`\`\`" >> $GITHUB_STEP_SUMMARY
exit "${exit_codes}"