Skip to content

Commit

Permalink
checks
Browse files Browse the repository at this point in the history
  • Loading branch information
userdocs committed Jan 10, 2025
1 parent 7d7e3f3 commit 7b61cb6
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 14 deletions.
23 changes: 9 additions & 14 deletions .github/workflows/ci-checks.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,26 +26,21 @@ jobs:
sh_checker_comment: true
sh_checker_exclude: ""

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 }}
- name: Check GitHub Action workflows
shell: bash {0}
run: |
pip install zizmor
zizmor . --gh-token $GITHUB_TOKEN |& tee summary.md
exit_codes="${PIPESTATUS[0]}"
zizmor="$(zizmor . --gh-token "${{ github.token }}")"
exit_code="$?"
printf '%s\n' "$zizmor"
printf '%b\n' "\`\`\`" >> $GITHUB_STEP_SUMMARY
cat summary.md >> $GITHUB_STEP_SUMMARY
printf '%s\n' "$zizmor" >> $GITHUB_STEP_SUMMARY
printf '%b' "\`\`\`" >> $GITHUB_STEP_SUMMARY
exit "${exit_codes}"
exit "$exit_code"
editorconfig-checker:
runs-on: ubuntu-24.04
Expand Down
5 changes: 5 additions & 0 deletions .pre-commit-config.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
repos:
- repo: https://github.com/woodruffw/zizmor-pre-commit
rev: v1.0.1
hooks:
- id: zizmor

0 comments on commit 7b61cb6

Please sign in to comment.