Skip to content

Commit b230f68

Browse files
authored
Allow zizmor's ref-pinning of first-party actions (#625)
Since zizmor 1.20.0, the default behaviour is that first-party actions (owned by GitHub) cannot be pinned by reference. Add a configuration file that allows to ref-pinning first-party actions to maintain the old behaviour.
1 parent d9e13cf commit b230f68

File tree

1 file changed

+11
-0
lines changed

1 file changed

+11
-0
lines changed

.github/zizmor.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Configure zizmor
2+
# ================
3+
rules:
4+
unpinned-uses:
5+
config:
6+
policies:
7+
# Allow to ref-pinning for first-party actions.
8+
# Reference: https://docs.zizmor.sh/release-notes/#1200
9+
actions/*: ref-pin
10+
github/*: ref-pin
11+
dependabot/*: ref-pin

0 commit comments

Comments
 (0)