Skip to content

Commit dec4f6a

Browse files
committed
fix: add workflow_dispatch trigger to audit workflow
Pushes and PR events made with GITHUB_TOKEN don't trigger other workflows. Since workflow_dispatch is exempt from this restriction, adding it allows automated workflows to trigger the audit check via gh workflow run.
1 parent 2976cfb commit dec4f6a

1 file changed

Lines changed: 3 additions & 8 deletions

File tree

.github/workflows/audit-gha-workflows.yml

Lines changed: 3 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,7 @@ jobs:
1515
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616
with:
1717
persist-credentials: false
18-
- name: Install zizmor
19-
run: pip install zizmor==1.23.1
2018
- name: Run zizmor
21-
env:
22-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
23-
run: |
24-
if [ -d .github ]; then
25-
zizmor .github --gh-token "${GITHUB_TOKEN}" --min-severity medium
26-
fi
19+
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
20+
with:
21+
min-severity: medium

0 commit comments

Comments
 (0)