Skip to content

Commit f7f806e

Browse files
update zimzor workflow based on the official template
1 parent bbe8b8b commit f7f806e

1 file changed

Lines changed: 7 additions & 12 deletions

File tree

.github/workflows/zizmor.yml

Lines changed: 7 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -12,26 +12,21 @@ on:
1212
paths:
1313
- ".github/workflows/**"
1414

15-
permissions:
16-
contents: read
17-
security-events: write
15+
permissions: {}
1816

1917
jobs:
2018
zizmor:
2119
name: Scan GitHub Actions workflows
2220
runs-on: ubuntu-latest
21+
permissions:
22+
security-events: write
23+
contents: read
24+
actions: read
2325
steps:
24-
- uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
26+
- name: Checkout repository
27+
uses: actions/checkout@8e8c483db84b4bee98b60c0593521ed34d9990e8 # v6.0.1
2528
with:
2629
persist-credentials: false
2730

2831
- name: Run zizmor
2932
uses: zizmorcore/zizmor-action@e639db99335bc9038abc0e066dfcd72e23d26fb4 # v0.3.0
30-
with:
31-
args: --format sarif --output results.sarif .github/workflows
32-
33-
- name: Upload SARIF file
34-
uses: github/codeql-action/upload-sarif@ff0a06e83cb2de871e5a09832bc6a81e7276941f # v3.28.18
35-
with:
36-
sarif_file: results.sarif
37-
category: zizmor

0 commit comments

Comments
 (0)