Skip to content

Commit 55811af

Browse files
authored
chore(security): Pin deps to hash & unify CI templates
1 parent 3f65e8c commit 55811af

4 files changed

Lines changed: 17 additions & 8 deletions

File tree

Lines changed: 11 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# https://github.com/woodruffw/zizmor
22

3-
name: Security
3+
name: Security - zizmor
44

55
on:
66
push:
@@ -12,28 +12,32 @@ on:
1212

1313
permissions: {}
1414

15+
concurrency:
16+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
17+
cancel-in-progress: true
18+
1519
jobs:
1620
zizmor:
17-
# name: zizmor via PyPI
18-
runs-on: ubuntu-latest
21+
# name: zizmor latest via PyPI
22+
runs-on: ubuntu-slim
1923
permissions:
2024
contents: read
2125

2226
steps:
2327
- name: Checkout repository
24-
uses: actions/checkout@v6.0.2 # zizmor: ignore[unpinned-uses]
28+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2529
with:
2630
persist-credentials: false
2731

2832
- name: Set up Python
29-
uses: actions/setup-python@v6 # zizmor: ignore[unpinned-uses]
33+
uses: actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405 # v6.2.0
3034
with:
31-
python-version: '3.10.4'
35+
python-version-file: '.python-version'
3236

3337
- name: Install Zizmor
3438
run: |
3539
python -m pip install --upgrade pip
3640
pip install $(grep '^zizmor==' requirements.txt)
3741
3842
- name: Run Zizmor
39-
run: zizmor .github/workflows
43+
run: zizmor --config zizmor.yml .github/workflows

.github/workflows/stargazers.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77

88
permissions: {}
99

10+
concurrency:
11+
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
12+
cancel-in-progress: true
13+
1014
jobs:
1115
check-new-links:
1216
runs-on: ubuntu-latest

.python-version

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
3.14.3

requirements.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
zizmor==1.22.0
1+
zizmor==1.23.1

0 commit comments

Comments
 (0)