Skip to content

Commit 11174ce

Browse files
authored
Merge pull request #53 from hugovk/fix-zizmor
Fix zizmor findings on CI and add to pre-commit
2 parents ae0a033 + d731fa5 commit 11174ce

File tree

4 files changed

+10
-0
lines changed

4 files changed

+10
-0
lines changed

.github/workflows/deploy.yml

+1
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ jobs:
2727
- uses: actions/checkout@v4
2828
with:
2929
fetch-depth: 0
30+
persist-credentials: false
3031

3132
- uses: hynek/build-and-inspect-python-package@v2
3233

.github/workflows/lint.yml

+2
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,8 @@ jobs:
1515

1616
steps:
1717
- uses: actions/checkout@v4
18+
with:
19+
persist-credentials: false
1820
- uses: actions/setup-python@v5
1921
with:
2022
python-version: "3.x"

.github/workflows/test.yml

+2
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,8 @@ jobs:
1919

2020
steps:
2121
- uses: actions/checkout@v4
22+
with:
23+
persist-credentials: false
2224

2325
- name: Set up Python ${{ matrix.python-version }}
2426
uses: actions/setup-python@v5

.pre-commit-config.yaml

+5
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,11 @@ repos:
3333
hooks:
3434
- id: actionlint
3535

36+
- repo: https://github.com/woodruffw/zizmor-pre-commit
37+
rev: v0.8.0
38+
hooks:
39+
- id: zizmor
40+
3641
- repo: https://github.com/tox-dev/pyproject-fmt
3742
rev: v2.5.0
3843
hooks:

0 commit comments

Comments
 (0)