Skip to content

Commit 3ffbbe8

Browse files
chore(ci): better zizmor (#190)
Configure zizmor to be simple pass/fail gate, and fix the couple lints that snuck in. Signed-off-by: Will Murphy <willmurphyscode@users.noreply.github.com>
1 parent 1b390cf commit 3ffbbe8

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

.github/dependabot.yaml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ updates:
77
open-pull-requests-limit: 10
88
labels:
99
- "dependencies"
10+
cooldown:
11+
default-days: 7
1012

1113
- package-ecosystem: "github-actions"
1214
directory: "/"
@@ -15,6 +17,8 @@ updates:
1517
open-pull-requests-limit: 10
1618
labels:
1719
- "dependencies"
20+
cooldown:
21+
default-days: 7
1822

1923
- package-ecosystem: "github-actions"
2024
directory: "/.github/actions/bootstrap"
@@ -23,3 +27,5 @@ updates:
2327
open-pull-requests-limit: 10
2428
labels:
2529
- "dependencies"
30+
cooldown:
31+
default-days: 7

.github/workflows/validate-github-actions.yaml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,6 @@ jobs:
2121
runs-on: ubuntu-latest
2222
permissions:
2323
contents: read
24-
security-events: write # for uploading SARIF results
2524
steps:
2625
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2726
with:
@@ -30,6 +29,7 @@ jobs:
3029
- name: "Run zizmor"
3130
uses: zizmorcore/zizmor-action@0dce2577a4760a2749d8cfb7a84b7d5585ebcb7d # v0.5.0
3231
with:
33-
config-file: .github/zizmor.yml
34-
sarif-upload: true
32+
config: .github/zizmor.yml
33+
# Disable SARIF upload so the step is a simple pass/fail gate
34+
advanced-security: false
3535
inputs: .github

.github/zizmor.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
rules:
2+
unpinned-uses:
3+
config:
4+
policies:
5+
# anchore/workflows is an internal repository; using @main is acceptable
6+
anchore/*: any

0 commit comments

Comments
 (0)