Skip to content

Commit

Permalink
Update zizmor.yaml
Browse files Browse the repository at this point in the history
Create zizmor.yaml

Update zizmor.yaml

show in term and summary instead of just summary.

Update zizmor.yaml

if condition not really needed here. it will either be 0 or not.
  • Loading branch information
userdocs committed Jan 8, 2025
1 parent 4f3d779 commit 6097ed3
Showing 1 changed file with 32 additions and 0 deletions.
32 changes: 32 additions & 0 deletions .github/workflows/zizmor.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
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}"

0 comments on commit 6097ed3

Please sign in to comment.