Skip to content

Commit 7b61cb6

Browse files
committed
checks
1 parent 7d7e3f3 commit 7b61cb6

File tree

2 files changed

+14
-14
lines changed

2 files changed

+14
-14
lines changed

.github/workflows/ci-checks.yml

Lines changed: 9 additions & 14 deletions
Original file line numberDiff line numberDiff 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

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
repos:
2+
- repo: https://github.com/woodruffw/zizmor-pre-commit
3+
rev: v1.0.1
4+
hooks:
5+
- id: zizmor

0 commit comments

Comments
 (0)