Skip to content

Commit 970d685

Browse files
committed
Hard-pin dependencies for better reproducability
1 parent ce3cfd0 commit 970d685

File tree

4 files changed

+19
-19
lines changed

4 files changed

+19
-19
lines changed

.github/workflows/ci-supported-pythons.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
runs-on: ubuntu-latest
1717

1818
steps:
19-
- uses: actions/checkout@v4
19+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2020
with:
2121
repository: hynek/structlog
2222
path: structlog
2323
fetch-depth: 0
24-
- uses: actions/checkout@v4
24+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2525
with:
2626
path: action
2727
- uses: ./action
@@ -51,13 +51,13 @@ jobs:
5151
# matrix: ${{ fromJson(needs.build-package.outputs.python-versions) }}
5252

5353
steps:
54-
- uses: actions/setup-python@v5
54+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
5555
with:
5656
python-version: ${{ matrix.python-version }}
5757
allow-prereleases: true
5858

5959
- name: Download built packages from the build-package job.
60-
uses: actions/download-artifact@v4
60+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4.3.0
6161
with:
6262
name: Packages
6363
path: dist
@@ -83,7 +83,7 @@ jobs:
8383
runs-on: ubuntu-latest
8484

8585
steps:
86-
- uses: actions/setup-python@v5
86+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
8787
with:
8888
python-version: "3.x"
8989

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -18,13 +18,13 @@ jobs:
1818
runs-on: ubuntu-latest
1919

2020
steps:
21-
- uses: actions/checkout@v4
21+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2222
with:
2323
repository: hynek/argon2-cffi-bindings
2424
submodules: recursive
2525
path: hynek/argon2-cffi-bindings
2626

27-
- uses: actions/checkout@v4
27+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2828
with:
2929
path: action
3030

@@ -45,12 +45,12 @@ jobs:
4545
- ubuntu-24.04
4646

4747
steps:
48-
- uses: actions/checkout@v4
48+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
4949
with:
5050
repository: hynek/structlog
5151
path: structlog
5252

53-
- uses: actions/checkout@v4
53+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
5454
with:
5555
path: action
5656

@@ -67,12 +67,12 @@ jobs:
6767
runs-on: ubuntu-latest
6868

6969
steps:
70-
- uses: actions/checkout@v4
70+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7171
with:
7272
repository: pytest-dev/pytest
7373
path: pytest
7474

75-
- uses: actions/checkout@v4
75+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
7676
with:
7777
path: action
7878

@@ -97,6 +97,6 @@ jobs:
9797

9898
steps:
9999
- name: Decide whether the needed jobs succeeded or failed
100-
uses: re-actors/alls-green@release/v1
100+
uses: re-actors/alls-green@05ac9388f0aebcb5727afa17fcccfecd6f8ec5fe # v1.2.2
101101
with:
102102
jobs: ${{ toJSON(needs) }}

.github/workflows/update-dependencies.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ jobs:
1717
# It doesn't matter if it's deleted when merged, it'll be re-created
1818
BRANCH_NAME: auto-dependency-upgrades
1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4.2.2
2121

2222
# START PYTHON DEPENDENCIES
2323
- name: Install uv

action.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ runs:
5252
using: composite
5353

5454
steps:
55-
- uses: actions/setup-python@v5
55+
- uses: actions/setup-python@a26af69be951a213d495a4c3e4e4022e16d87065 # v5.6.0
5656
id: python-baipp
5757
with:
5858
python-version: "3.x"
@@ -78,7 +78,7 @@ runs:
7878
shell: bash
7979

8080
- name: Setup uv cache
81-
uses: actions/cache@v4
81+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4.2.3
8282
with:
8383
path: ${{ env.UV_CACHE_DIR }}
8484
key: baipp-${{ env.REQS_HASH }}
@@ -134,7 +134,7 @@ runs:
134134

135135
- name: Attest GitHub build provenance
136136
if: ${{ inputs.attest-build-provenance-github == 'true' }}
137-
uses: actions/attest-build-provenance@v1
137+
uses: actions/attest-build-provenance@ef244123eb79f2f7a7e75d99086184180e6d0018 # v1.4.4
138138
with:
139139
subject-path: "/tmp/baipp/dist/*"
140140

@@ -153,7 +153,7 @@ runs:
153153
working-directory: ${{ inputs.path }}
154154

155155
- name: Upload built artifacts.
156-
uses: actions/upload-artifact@v4
156+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
157157
with:
158158
name: ${{ steps.artifact.outputs.name }}
159159
path: /tmp/baipp/dist/*
@@ -207,7 +207,7 @@ runs:
207207
echo ----- End of Metadata -----
208208
209209
- name: Upload metadata
210-
uses: actions/upload-artifact@v4
210+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
211211
with:
212212
name: Package Metadata${{ inputs.upload-name-suffix }}
213213
path: /tmp/baipp/dist/out/sdist/*/PKG-INFO
@@ -230,7 +230,7 @@ runs:
230230
'
231231
232232
- name: Upload PyPI README
233-
uses: actions/upload-artifact@v4
233+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4.6.2
234234
with:
235235
name: PyPI README${{ inputs.upload-name-suffix }}
236236
path: /tmp/baipp/dist/out/sdist/PyPI-README.*

0 commit comments

Comments
 (0)