Skip to content

Commit 6773438

Browse files
authored
πŸ”’ ci: lock workflow actions with a lockfile (#216)
Every action this repository's workflows run is now locked to a commit through a [workflow lockfile](https://docs.github.com/en/actions/concepts/security/workflow-dependency-lockfiles), [generally available since 2026-10-28](https://github.blog/changelog/2026-10-28-github-actions-workflow-lockfiles-are-generally-available/). πŸ”’ A moved or rewritten tag fails the job before any step runs, and the lock also covers the actions those actions call, which a SHA in `uses:` never pinned. [gh-actions-lock](https://github.com/github/gh-actions-lock) wrote `.github/workflows/actions.lock` and turned step-level SHA pins back into tags, which the runner resolves through the lockfile. Reusable workflow calls keep their full SHA, since the lockfile does not cover them, and move to [github-workflows 6.8.0](https://github.com/tox-dev/github-workflows/releases/tag/6.8.0), the first release whose own actions are locked. [zizmor](https://docs.zizmor.sh/usage/#workflow-lockfiles) moves to 1.32.0, which reads the lockfile; 1.31.1 reports each tag as `unpinned-uses`. Dependabot keeps updating actions and [regenerates the matching lockfile entry](https://github.blog/changelog/2026-10-28-github-actions-workflow-lockfiles-are-generally-available/) in the same pull request.
1 parent c1003bc commit 6773438

9 files changed

Lines changed: 68 additions & 17 deletions

File tree

Lines changed: 51 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,51 @@
1+
# This file is machine-generated by `gh actions-lock`.
2+
# Do not edit by hand; run `gh actions-lock` to update.
3+
# Docs: https://gh.io/actions-lockfile
4+
version: 'v0.0.3'
5+
workflows:
6+
'.github/workflows/check.yaml':
7+
- 'tox-dev/github-workflows@6.8.0'
8+
'.github/workflows/codeql.yaml': []
9+
'.github/workflows/news.yaml':
10+
- 'actions/checkout@v7.0.1'
11+
- 'astral-sh/setup-uv@v10.3.3'
12+
- 'tox-dev/github-workflows@6.8.0'
13+
'.github/workflows/prepare-release.yaml': []
14+
'.github/workflows/release.yaml':
15+
- 'actions/download-artifact@v8.0.2'
16+
- 'pypa/gh-action-pypi-publish@v1.14.3'
17+
'.github/workflows/scorecard.yaml': []
18+
'.github/workflows/upgrade-release-tools.yaml': []
19+
dependencies:
20+
'actions/checkout@v7.0.1':
21+
ref: 'v7.0.1'
22+
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
23+
owner_id: 44036562
24+
repo_id: 197814629
25+
'actions/download-artifact@v8.0.2':
26+
ref: 'v8.0.2'
27+
commit: 'sha1-9000827ccba6bdab643e8b6fd33ac0654aef8333'
28+
owner_id: 44036562
29+
repo_id: 192626254
30+
'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405':
31+
ref: 'v6.2.0'
32+
commit: 'sha1-a309ff8b426b58ec0e2a45f0f869d46889d02405'
33+
owner_id: 44036562
34+
repo_id: 192625525
35+
'astral-sh/setup-uv@v10.3.3':
36+
ref: 'v10.3.3'
37+
commit: 'sha1-68559e99cc807c1eb7e9238fd43a15bba460eec2'
38+
owner_id: 115962839
39+
repo_id: 846733598
40+
'pypa/gh-action-pypi-publish@v1.14.3':
41+
ref: 'v1.14.3'
42+
commit: 'sha1-7245906fb61fa33a13554f9d5fb856fe61758086'
43+
owner_id: 647025
44+
repo_id: 178055147
45+
uses:
46+
- 'actions/setup-python@a309ff8b426b58ec0e2a45f0f869d46889d02405'
47+
'tox-dev/github-workflows@6.8.0':
48+
ref: '6.8.0'
49+
commit: 'sha1-bf1c3ab0aa137d307a07aad844d507af73039387'
50+
owner_id: 20345659
51+
repo_id: 1426182029

β€Ž.github/workflows/check.yamlβ€Ž

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ permissions:
1616
jobs:
1717
test:
1818
name: πŸ§ͺ Test
19-
uses: tox-dev/github-workflows/.github/workflows/check.yaml@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
19+
uses: tox-dev/github-workflows/.github/workflows/check.yaml@bf1c3ab0aa137d307a07aad844d507af73039387 # 6.8.0
2020
permissions:
2121
contents: read
2222
with:
@@ -43,7 +43,7 @@ jobs:
4343
dry-run: true
4444
hooks:
4545
name: 🧹 Hooks under the cooldown
46-
uses: tox-dev/github-workflows/.github/workflows/cooled-hooks.yaml@0c4cffd63033d38196319524d101caae1eef925b # 6.7.2
46+
uses: tox-dev/github-workflows/.github/workflows/cooled-hooks.yaml@bf1c3ab0aa137d307a07aad844d507af73039387 # 6.8.0
4747
permissions:
4848
contents: read
4949
gate:
@@ -53,6 +53,6 @@ jobs:
5353
runs-on: ubuntu-24.04
5454
steps:
5555
- name: 🚦 Require all needed jobs to pass
56-
uses: tox-dev/github-workflows/required-checks@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
56+
uses: tox-dev/github-workflows/required-checks@6.8.0
5757
with:
5858
needs: ${{ toJSON(needs) }}

β€Ž.github/workflows/codeql.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ permissions: {}
1313
jobs:
1414
analyze:
1515
name: πŸ›‘οΈ Analyze
16-
uses: tox-dev/github-workflows/.github/workflows/codeql.yaml@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
16+
uses: tox-dev/github-workflows/.github/workflows/codeql.yaml@bf1c3ab0aa137d307a07aad844d507af73039387 # 6.8.0
1717
permissions:
1818
contents: read
1919
security-events: write

β€Ž.github/workflows/news.yamlβ€Ž

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -11,20 +11,20 @@ jobs:
1111
runs-on: ubuntu-24.04
1212
steps:
1313
- name: πŸ“₯ Check out code
14-
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
14+
uses: actions/checkout@v7.0.1
1515
with:
1616
fetch-depth: 0
1717
persist-credentials: false
1818
- name: 🐍 Install uv
19-
uses: astral-sh/setup-uv@68559e99cc807c1eb7e9238fd43a15bba460eec2 # v10.3.3
19+
uses: astral-sh/setup-uv@v10.3.3
2020
with:
2121
version: latest-known
2222
python-version: "3.15"
2323
enable-cache: false
2424
- name: πŸ“¦ Install locked release tools
25-
uses: tox-dev/github-workflows/install-locked-tools@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
25+
uses: tox-dev/github-workflows/install-locked-tools@6.8.0
2626
with:
2727
groups: release-news
2828
venv: ${{ runner.temp }}/release-tools
2929
- name: πŸ” Validate news fragments
30-
uses: tox-dev/github-workflows/validate-news@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
30+
uses: tox-dev/github-workflows/validate-news@6.8.0

β€Ž.github/workflows/prepare-release.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ permissions: {}
2222
jobs:
2323
prepare:
2424
name: 🏷️ Prepare Towncrier release
25-
uses: tox-dev/github-workflows/.github/workflows/prepare-towncrier-release.yaml@0c4cffd63033d38196319524d101caae1eef925b # 6.7.2
25+
uses: tox-dev/github-workflows/.github/workflows/prepare-towncrier-release.yaml@bf1c3ab0aa137d307a07aad844d507af73039387 # 6.8.0
2626
permissions:
2727
contents: read
2828
pull-requests: read

β€Ž.github/workflows/release.yamlβ€Ž

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ concurrency:
1010
jobs:
1111
build:
1212
name: πŸ—οΈ Build
13-
uses: tox-dev/github-workflows/.github/workflows/validate-python-release.yaml@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
13+
uses: tox-dev/github-workflows/.github/workflows/validate-python-release.yaml@bf1c3ab0aa137d307a07aad844d507af73039387 # 6.8.0
1414
permissions:
1515
contents: read
1616
notes:
1717
name: πŸ“ Render GitHub Release notes
18-
uses: tox-dev/github-workflows/.github/workflows/release-notes.yaml@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
18+
uses: tox-dev/github-workflows/.github/workflows/release-notes.yaml@bf1c3ab0aa137d307a07aad844d507af73039387 # 6.8.0
1919
permissions:
2020
contents: read
2121
with:
@@ -32,19 +32,19 @@ jobs:
3232
id-token: write
3333
steps:
3434
- name: πŸ“© Download distributions
35-
uses: actions/download-artifact@9000827ccba6bdab643e8b6fd33ac0654aef8333 # v8.0.2
35+
uses: actions/download-artifact@v8.0.2
3636
with:
3737
artifact-ids: ${{ needs.build.outputs.distributions-artifact-id }}
3838
path: dist/
3939
- name: πŸš€ Publish to PyPI
40-
uses: pypa/gh-action-pypi-publish@7245906fb61fa33a13554f9d5fb856fe61758086 # v1.14.3
40+
uses: pypa/gh-action-pypi-publish@v1.14.3
4141
with:
4242
packages-dir: dist
4343
attestations: true
4444
github-release:
4545
name: πŸš€ Publish GitHub Release
4646
needs: [build, release, notes]
47-
uses: tox-dev/github-workflows/.github/workflows/github-release.yaml@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
47+
uses: tox-dev/github-workflows/.github/workflows/github-release.yaml@bf1c3ab0aa137d307a07aad844d507af73039387 # 6.8.0
4848
permissions:
4949
contents: write
5050
with:

β€Ž.github/workflows/scorecard.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,4 +23,4 @@ jobs:
2323
pull-requests: read # read reviews for the Code-Review check
2424
security-events: write # upload the SARIF results to code scanning
2525
statuses: read # read commit statuses for the CI-Tests check
26-
uses: tox-dev/github-workflows/.github/workflows/scorecard.yaml@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
26+
uses: tox-dev/github-workflows/.github/workflows/scorecard.yaml@bf1c3ab0aa137d307a07aad844d507af73039387 # 6.8.0

β€Ž.github/workflows/upgrade-release-tools.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,7 +10,7 @@ concurrency:
1010
jobs:
1111
upgrade:
1212
name: πŸ”€ Upgrade release tools
13-
uses: tox-dev/github-workflows/.github/workflows/upgrade-release-tools.yaml@bceb5c005e19823dc8835f536f53f172ae223927 # 6.5.0
13+
uses: tox-dev/github-workflows/.github/workflows/upgrade-release-tools.yaml@bf1c3ab0aa137d307a07aad844d507af73039387 # 6.8.0
1414
permissions:
1515
contents: read
1616
secrets:

β€Ž.pre-commit-config.yamlβ€Ž

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -65,7 +65,7 @@ repos:
6565
- id: yamlfmt
6666
priority: 3
6767
- repo: https://github.com/zizmorcore/zizmor-pre-commit
68-
rev: c92afdf2c6ca336aaa8f39e2bd8d48f62dbd8e1f # frozen: v1.31.1
68+
rev: 06a39750ec31860bb44f2acf67182c40016cd1e7 # frozen: v1.32.0
6969
hooks:
7070
- id: zizmor
7171
priority: 8

0 commit comments

Comments
Β (0)