Skip to content

Commit 4cfec5c

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 4cfec5c

File tree

1 file changed

+4
-8
lines changed

1 file changed

+4
-8
lines changed

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

Lines changed: 4 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@ on:
33
pull_request:
44
push:
55
branches: [master, main]
6+
workflow_dispatch:
67
permissions:
78
contents: read
89
jobs:
@@ -15,12 +16,7 @@ jobs:
1516
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1617
with:
1718
persist-credentials: false
18-
- name: Install zizmor
19-
run: pip install zizmor==1.23.1
2019
- 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
20+
uses: zizmorcore/zizmor-action@71321a20a9ded102f6e9ce5718a2fcec2c4f70d8 # v0.5.2
21+
with:
22+
min-severity: medium

0 commit comments

Comments
 (0)