Skip to content

Commit bb6ddb3

Browse files
committed
zizmor: Allow unpinned actions for trusted orgs
1 parent 29bdbf0 commit bb6ddb3

File tree

3 files changed

+13
-1
lines changed

3 files changed

+13
-1
lines changed

.github/workflows/watch-dependencies.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,7 @@ jobs:
6868

6969
# ref: https://github.com/peter-evans/create-pull-request
7070
- name: Create a PR
71-
uses: peter-evans/create-pull-request@v7
71+
uses: peter-evans/create-pull-request@271a8d0340265f705b14b6d32b9829c1cb33d45e # v7.0.8
7272
with:
7373
token: "${{ secrets.jupyterhub_bot_pat }}"
7474
author: JupyterHub Bot Account <[email protected]>

.github/zizmor.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Zizmor configuration file
2+
rules:
3+
unpinned-uses:
4+
config:
5+
policies:
6+
# Zizmor defaults to requiring pinning by immutable hashes.
7+
# Allow pinning by refs for trusted organisations.
8+
# https://woodruffw.github.io/zizmor/audits/#rulesunpinned-usesconfigpolicies
9+
actions/*: ref-pin
10+
docker/*: ref-pin
11+
jupyterhub/*: ref-pin

.pre-commit-config.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,7 @@ repos:
2929
- id: ruff-format
3030

3131
# Static security analysis of GitHub actions https://github.com/woodruffw/zizmor
32+
# Additional config is in .github/zizmor.yml
3233
- repo: https://github.com/woodruffw/zizmor-pre-commit
3334
rev: v1.6.0
3435
hooks:

0 commit comments

Comments
 (0)