Skip to content

Commit 2577f31

Browse files
authored
ci: add zizmor (#1082)
Signed-off-by: Henry Schreiner <henryfs@princeton.edu>
1 parent b6a6156 commit 2577f31

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

.github/dependabot.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,5 @@ updates:
99
actions:
1010
patterns:
1111
- "*"
12+
cooldown:
13+
default-days: 7

.github/zizmor.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
rules:
2+
unpinned-uses:
3+
disable: true

.pre-commit-config.yaml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,3 +66,8 @@ repos:
6666
- id: rst-backticks
6767
- id: rst-directive-colons
6868
- id: rst-inline-touching-normal
69+
70+
- repo: https://github.com/zizmorcore/zizmor-pre-commit
71+
rev: v1.22.0
72+
hooks:
73+
- id: zizmor

action.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,11 @@ runs:
2121
- name: "Validate input"
2222
id: helper
2323
run: >
24-
'${{ steps.localpython.outputs.python-path }}' '${{ github.action_path }}/.github/action_helper.py' '${{ inputs.python-versions }}' >>${GITHUB_OUTPUT}
24+
"${STEPS_LOCALPYTHON_OUTPUTS_PYTHON_PATH}" "${{ github.action_path }}/.github/action_helper.py" "${INPUTS_PYTHON_VERSIONS}" >> "${GITHUB_OUTPUT}"
2525
shell: bash
26+
env:
27+
STEPS_LOCALPYTHON_OUTPUTS_PYTHON_PATH: ${{ steps.localpython.outputs.python-path }}
28+
INPUTS_PYTHON_VERSIONS: ${{ inputs.python-versions }}
2629

2730
- uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
2831
id: allpython

0 commit comments

Comments
 (0)