Skip to content

Commit 3b27881

Browse files
authored
Lock GitHub Actions workflows and pre-commit hooks (#367)
1 parent 26ce31f commit 3b27881

4 files changed

Lines changed: 99 additions & 17 deletions

File tree

‎.github/workflows/actions.lock‎

Lines changed: 71 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
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/lint.yml':
7+
- 'actions/checkout@v7.0.1'
8+
- 'github/gh-actions-lock@verify/v0.5.1'
9+
- 'j178/prek-action@v3.1.1'
10+
'.github/workflows/test.yml':
11+
- 'actions/checkout@v7.0.1'
12+
- 'actions/setup-python@v7.1.0'
13+
- 'actions/upload-artifact@v7.0.2'
14+
- 'codecov/codecov-action@v7.1.1'
15+
- 'hynek/setup-cached-uv@v2.6.0'
16+
dependencies:
17+
'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9':
18+
ref: 'v6.1.0'
19+
commit: 'sha1-55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
20+
owner_id: 44036562
21+
repo_id: 215566462
22+
'actions/checkout@v7.0.1':
23+
ref: 'v7.0.1'
24+
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
25+
owner_id: 44036562
26+
repo_id: 197814629
27+
'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd':
28+
ref: 'v8.0.0'
29+
commit: 'sha1-ed597411d8f924073f98dfc5c65a23a2325f34cd'
30+
owner_id: 44036562
31+
repo_id: 205262760
32+
'actions/setup-python@v7.1.0':
33+
ref: 'v7.1.0'
34+
commit: 'sha1-6d4fd22b20465ccc0f7354476588e8df7c9ca0e0'
35+
owner_id: 44036562
36+
repo_id: 192625525
37+
'actions/upload-artifact@v7.0.2':
38+
ref: 'v7.0.2'
39+
commit: 'sha1-cf430e030ddbb5b0abf93d22962f4752f3646cd9'
40+
owner_id: 44036562
41+
repo_id: 192625955
42+
'codecov/codecov-action@v7.1.1':
43+
ref: 'v7.1.1'
44+
commit: 'sha1-303a32d7a59b442fa8d48b6a1cc6825c09c847a5'
45+
owner_id: 8226205
46+
repo_id: 200299178
47+
uses:
48+
- 'actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd'
49+
'gacts/run-and-post-run@598d7a875d5620e0457490555b5e18e46082aa47':
50+
ref: 'v1.4.4'
51+
commit: 'sha1-598d7a875d5620e0457490555b5e18e46082aa47'
52+
owner_id: 56696274
53+
repo_id: 617991574
54+
'github/gh-actions-lock@verify/v0.5.1':
55+
ref: 'verify/v0.5.1'
56+
commit: 'sha1-5fa07d19c267d19e29f4341f10fdf7f516375038'
57+
owner_id: 9919
58+
repo_id: 1217640442
59+
'hynek/setup-cached-uv@v2.6.0':
60+
ref: 'v2.6.0'
61+
commit: 'sha1-34e35d30f1ebc7421a5cc733bca38dcc62603960'
62+
owner_id: 41240
63+
repo_id: 779953216
64+
uses:
65+
- 'actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
66+
- 'gacts/run-and-post-run@598d7a875d5620e0457490555b5e18e46082aa47'
67+
'j178/prek-action@v3.1.1':
68+
ref: 'v3.1.1'
69+
commit: 'sha1-7b101f8338a08d2bd6fdb3625e4e7692428763a3'
70+
owner_id: 10510431
71+
repo_id: 1052387486

‎.github/workflows/lint.yml‎

Lines changed: 12 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,18 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v7
17+
- uses: actions/checkout@v7.0.1
1818
with:
1919
persist-credentials: false
2020
- uses: j178/prek-action@v3.1.1
21+
22+
# Fails when .github/workflows/actions.lock is out of sync with the
23+
# workflows or a locked pin no longer verifies upstream.
24+
lockfile:
25+
runs-on: ubuntu-slim
26+
27+
steps:
28+
- uses: actions/checkout@v7.0.1
29+
with:
30+
persist-credentials: false
31+
- uses: github/gh-actions-lock@verify/v0.5.1

‎.github/workflows/test.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
branch: ["3.14", "3.15", "main"]
1818

1919
steps:
20-
- uses: actions/checkout@v7
20+
- uses: actions/checkout@v7.0.1
2121
with:
2222
persist-credentials: false
23-
- uses: actions/setup-python@v7
23+
- uses: actions/setup-python@v7.1.0
2424
with:
2525
python-version: "3.x"
2626

@@ -42,7 +42,7 @@ jobs:
4242
--branches ${{ matrix.branch }}
4343
4444
- name: Upload documentation
45-
uses: actions/upload-artifact@v7
45+
uses: actions/upload-artifact@v7.0.2
4646
with:
4747
name: www-root-${{ matrix.branch }}
4848
path: ./www
@@ -58,24 +58,24 @@ jobs:
5858
os: [windows-latest, macos-latest, ubuntu-latest]
5959

6060
steps:
61-
- uses: actions/checkout@v7
61+
- uses: actions/checkout@v7.0.1
6262
with:
6363
persist-credentials: false
6464

6565
- name: Set up Python ${{ matrix.python-version }}
66-
uses: actions/setup-python@v7
66+
uses: actions/setup-python@v7.1.0
6767
with:
6868
python-version: ${{ matrix.python-version }}
6969
allow-prereleases: true
7070

7171
- name: Install uv
72-
uses: hynek/setup-cached-uv@v2
72+
uses: hynek/setup-cached-uv@v2.6.0
7373

7474
- name: Tox tests
7575
run: uvx --with tox-uv tox -e py
7676

7777
- name: Upload coverage
78-
uses: codecov/codecov-action@v7
78+
uses: codecov/codecov-action@v7.1.1
7979
with:
8080
flags: ${{ matrix.os }}
8181
name: Python ${{ matrix.python-version }}

‎.pre-commit-config.yaml‎

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
repos:
22
- repo: https://github.com/pre-commit/pre-commit-hooks
3-
rev: v6.0.0
3+
rev: 3e8a8703264a2f4a69428a0aa4dcb512790b2c8c # frozen: v6.0.0
44
hooks:
55
- id: check-added-large-files
66
- id: check-case-conflict
@@ -14,45 +14,45 @@ repos:
1414
- id: trailing-whitespace
1515

1616
- repo: https://github.com/astral-sh/ruff-pre-commit
17-
rev: v0.17.6
17+
rev: 9026c9127e153371d7a78dfcb0c45ae2046a3d10 # frozen: v0.17.6
1818
hooks:
1919
- id: ruff-check
2020
args: [--fix]
2121
- id: ruff-format
2222

2323
- repo: https://github.com/python-jsonschema/check-jsonschema
24-
rev: 0.40.0
24+
rev: 5cd68003238a7d47422b94d96a5fa492667cc92c # frozen: 0.40.0
2525
hooks:
2626
- id: check-dependabot
2727
- id: check-github-workflows
2828

2929
- repo: https://github.com/rhysd/actionlint
30-
rev: v1.7.12
30+
rev: 914e7df21a07ef503a81201c76d2b11c789d3fca # frozen: v1.7.12
3131
hooks:
3232
- id: actionlint
3333

3434
- repo: https://github.com/zizmorcore/zizmor-pre-commit
35-
rev: v1.33.1
35+
rev: c7d31dc612dffdd4d3b2f2b88b9660d3ab057ee8 # frozen: v1.33.1
3636
hooks:
3737
- id: zizmor
3838

3939
- repo: https://github.com/tox-dev/pyproject-fmt
40-
rev: v2.31.4
40+
rev: 6047d757bd7d8cf96bb6abdad75b15edd93f489b # frozen: v2.31.4
4141
hooks:
4242
- id: pyproject-fmt
4343

4444
- repo: https://github.com/abravalheri/validate-pyproject
45-
rev: v0.27
45+
rev: 82d21874c3242e4dc27bb47641c996902ef64eef # frozen: v0.27
4646
hooks:
4747
- id: validate-pyproject
4848

4949
- repo: https://github.com/tox-dev/tox-ini-fmt
50-
rev: 1.10.3
50+
rev: 2116dba1a9820e51762d8ef27dfcef7b0a0499e6 # frozen: 1.10.3
5151
hooks:
5252
- id: tox-ini-fmt
5353

5454
- repo: https://github.com/rbubley/mirrors-prettier
55-
rev: v3.10.1
55+
rev: c035d5c3fc2ce295b961030061d09de67d9203dc # frozen: v3.10.1
5656
hooks:
5757
- id: prettier
5858
files: templates/switchers.js

0 commit comments

Comments
 (0)