File tree Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Expand file tree Collapse file tree 2 files changed +14
-14
lines changed Original file line number Diff line number Diff line change @@ -26,26 +26,21 @@ jobs:
2626 sh_checker_comment : true
2727 sh_checker_exclude : " "
2828
29- zizmor-workflow-audits :
30- runs-on : ubuntu-24.04
31- steps :
32- - uses : actions/checkout@v4
33- with :
34- persist-credentials : false
35-
36- - name : zizmor workflow audits
37- env :
38- GITHUB_TOKEN : ${{ secrets.GITHUB_TOKEN }}
29+ - name : Check GitHub Action workflows
30+ shell : bash {0}
3931 run : |
4032 pip install zizmor
41- zizmor . --gh-token $GITHUB_TOKEN |& tee summary.md
42- exit_codes="${PIPESTATUS[0]}"
33+
34+ zizmor="$(zizmor . --gh-token "${{ github.token }}")"
35+ exit_code="$?"
36+
37+ printf '%s\n' "$zizmor"
4338
4439 printf '%b\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY
45- cat summary.md >> $GITHUB_STEP_SUMMARY
40+ printf '%s\n' "$zizmor" >> $GITHUB_STEP_SUMMARY
4641 printf '%b' "\`\`\`" >> $GITHUB_STEP_SUMMARY
4742
48- exit "${exit_codes} "
43+ exit "$exit_code "
4944
5045 editorconfig-checker :
5146 runs-on : ubuntu-24.04
Original file line number Diff line number Diff line change 1+ repos :
2+ - repo : https://github.com/woodruffw/zizmor-pre-commit
3+ rev : v1.0.1
4+ hooks :
5+ - id : zizmor
You can’t perform that action at this time.
0 commit comments