Skip to content

Commit 4c2968c

Browse files
gloursclaude
andcommitted
chore: pin GitHub Actions to commit SHA, remove pr-review workflow
- Pin all action references to full commit SHA instead of mutable version tags. Tag retained as inline comment for readability. - Remove pr-review.yml workflow. Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
1 parent 2b9f60b commit 4c2968c

5 files changed

Lines changed: 33 additions & 77 deletions

File tree

.github/workflows/ci.yml

Lines changed: 24 additions & 24 deletions
Original file line numberDiff line numberDiff line change
@@ -35,17 +35,17 @@ jobs:
3535
steps:
3636
-
3737
name: Checkout
38-
uses: actions/checkout@v4
38+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3939
-
4040
name: Set up Docker Buildx
41-
uses: docker/setup-buildx-action@v3
41+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
4242
-
4343
name: Run
4444
run: |
4545
make ${{ matrix.target }}
4646
4747
binary:
48-
uses: docker/github-builder/.github/workflows/bake.yml@v1.4.0
48+
uses: docker/github-builder/.github/workflows/bake.yml@70313223e2665c3211b454b3fea6534624e78d64 # v1.4.0
4949
permissions:
5050
contents: read # same as global permission
5151
id-token: write # for signing attestation(s) with GitHub OIDC Token
@@ -67,7 +67,7 @@ jobs:
6767
steps:
6868
-
6969
name: Download artifacts
70-
uses: actions/download-artifact@v7
70+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
7171
with:
7272
path: /tmp/compose-output
7373
name: ${{ needs.binary.outputs.artifact-name }}
@@ -103,15 +103,15 @@ jobs:
103103
done
104104
-
105105
name: Upload artifacts
106-
uses: actions/upload-artifact@v6
106+
uses: actions/upload-artifact@b7c566a772e6b6bfb58ed0dc250532a479d7789f # v6
107107
with:
108108
name: release
109109
path: ./bin/release/*
110110
if-no-files-found: error
111111

112112
bin-image-test:
113113
if: github.event_name == 'pull_request'
114-
uses: docker/github-builder/.github/workflows/bake.yml@v1.4.0
114+
uses: docker/github-builder/.github/workflows/bake.yml@70313223e2665c3211b454b3fea6534624e78d64 # v1.4.0
115115
with:
116116
runner: amd64
117117
target: image-cross
@@ -132,25 +132,25 @@ jobs:
132132
steps:
133133
-
134134
name: Set up Docker Buildx
135-
uses: docker/setup-buildx-action@v3
135+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
136136
-
137137
name: Test
138-
uses: docker/bake-action@v6
138+
uses: docker/bake-action@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6
139139
with:
140140
targets: test
141141
set: |
142142
*.cache-from=type=gha,scope=test
143143
*.cache-to=type=gha,scope=test
144144
-
145145
name: Gather coverage data
146-
uses: actions/upload-artifact@v4
146+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
147147
with:
148148
name: coverage-data-unit
149149
path: bin/coverage/unit/
150150
if-no-files-found: error
151151
-
152152
name: Unit Test Summary
153-
uses: test-summary/action@v2
153+
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2
154154
with:
155155
paths: bin/coverage/unit/report.xml
156156
if: always()
@@ -185,7 +185,7 @@ jobs:
185185
echo "MODE_ENGINE_PAIR=${mode}-${engine}" >> $GITHUB_ENV
186186
187187
- name: Checkout
188-
uses: actions/checkout@v4
188+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
189189

190190
- name: Install Docker ${{ matrix.engine }}
191191
run: |
@@ -199,15 +199,15 @@ jobs:
199199
run: docker --version
200200

201201
- name: Set up Docker Buildx
202-
uses: docker/setup-buildx-action@v3
202+
uses: docker/setup-buildx-action@8d2750c68a42422c14e847fe6c8ac0403b4cbd6f # v3
203203

204204
- name: Set up Docker Model
205205
run: |
206206
sudo apt-get install docker-model-plugin
207207
docker model version
208208
209209
- name: Set up Go
210-
uses: actions/setup-go@v6
210+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
211211
with:
212212
go-version-file: '.go-version'
213213
check-latest: true
@@ -217,7 +217,7 @@ jobs:
217217
run: make example-provider
218218

219219
- name: Build
220-
uses: docker/bake-action@v6
220+
uses: docker/bake-action@5be5f02ff8819ecd3092ea6b2e6261c31774f2b4 # v6
221221
with:
222222
source: .
223223
targets: binary-with-coverage
@@ -244,7 +244,7 @@ jobs:
244244
245245
- name: Gather coverage data
246246
if: ${{ matrix.mode == 'plugin' }}
247-
uses: actions/upload-artifact@v4
247+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
248248
with:
249249
name: coverage-data-e2e-${{ env.MODE_ENGINE_PAIR }}
250250
path: bin/coverage/e2e/
@@ -258,7 +258,7 @@ jobs:
258258
make e2e-compose-standalone
259259
260260
- name: e2e Test Summary
261-
uses: test-summary/action@v2
261+
uses: test-summary/action@31493c76ec9e7aa675f1585d3ed6f1da69269a86 # v2
262262
with:
263263
paths: /tmp/report/report.xml
264264
if: always()
@@ -271,20 +271,20 @@ jobs:
271271
steps:
272272
# codecov won't process the report without the source code available
273273
- name: Checkout
274-
uses: actions/checkout@v4
274+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
275275
- name: Set up Go
276-
uses: actions/setup-go@v6
276+
uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
277277
with:
278278
go-version-file: '.go-version'
279279
check-latest: true
280280
- name: Download unit test coverage
281-
uses: actions/download-artifact@v4
281+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
282282
with:
283283
name: coverage-data-unit
284284
path: coverage/unit
285285
merge-multiple: true
286286
- name: Download E2E test coverage
287-
uses: actions/download-artifact@v4
287+
uses: actions/download-artifact@d3f86a106a0bac45b974a628896c90dbdf5c8093 # v4
288288
with:
289289
pattern: coverage-data-e2e-*
290290
path: coverage/e2e
@@ -293,13 +293,13 @@ jobs:
293293
run: |
294294
go tool covdata textfmt -i=./coverage/unit,./coverage/e2e -o ./coverage.txt
295295
- name: Store coverage report in GitHub Actions
296-
uses: actions/upload-artifact@v4
296+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
297297
with:
298298
name: go-covdata-txt
299299
path: ./coverage.txt
300300
if-no-files-found: error
301301
- name: Upload coverage to Codecov
302-
uses: codecov/codecov-action@v5
302+
uses: codecov/codecov-action@1af58845a975a7985b0beb0cbe6fbbb71a41dbad # v5
303303
with:
304304
files: ./coverage.txt
305305

@@ -312,10 +312,10 @@ jobs:
312312
steps:
313313
-
314314
name: Checkout
315-
uses: actions/checkout@v4
315+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
316316
-
317317
name: Download artifacts
318-
uses: actions/download-artifact@v7
318+
uses: actions/download-artifact@37930b1c2abaa49bbe596cd826c3c89aef350131 # v7
319319
with:
320320
path: ./bin/release
321321
name: release

.github/workflows/docs-upstream.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,17 +34,17 @@ jobs:
3434
steps:
3535
-
3636
name: Checkout
37-
uses: actions/checkout@v4
37+
uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3838
-
3939
name: Upload reference YAML docs
40-
uses: actions/upload-artifact@v4
40+
uses: actions/upload-artifact@ea165f8d65b6e75b540449e92b4886f43607fa02 # v4
4141
with:
4242
name: docs-yaml
4343
path: docs/reference
4444
retention-days: 1
4545

4646
validate:
47-
uses: docker/docs/.github/workflows/validate-upstream.yml@main
47+
uses: docker/docs/.github/workflows/validate-upstream.yml@464a44a6e72b37cf1755968477e242a5e5f6ef7d # main 2026-03-24
4848
needs:
4949
- docs-yaml
5050
with:

.github/workflows/merge.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -31,9 +31,9 @@ jobs:
3131
env:
3232
GO111MODULE: "on"
3333
steps:
34-
- uses: actions/checkout@v4
34+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
3535

36-
- uses: actions/setup-go@v6
36+
- uses: actions/setup-go@4b73464bb391d4059bd26b0524d20df3927bd417 # v6
3737
with:
3838
go-version-file: '.go-version'
3939
cache: true
@@ -83,7 +83,7 @@ jobs:
8383
- run: echo "Exposing env vars for reusable workflow"
8484

8585
bin-image:
86-
uses: docker/github-builder/.github/workflows/bake.yml@v1.4.0
86+
uses: docker/github-builder/.github/workflows/bake.yml@70313223e2665c3211b454b3fea6534624e78d64 # v1.4.0
8787
needs:
8888
- bin-image-prepare
8989
permissions:
@@ -117,7 +117,7 @@ jobs:
117117
-
118118
name: Generate Token
119119
id: generate_token
120-
uses: actions/create-github-app-token@v1
120+
uses: actions/create-github-app-token@d72941d797fd3113feb6b93fd0dec494b13a2547 # v1
121121
with:
122122
app-id: ${{ vars.DOCKERDESKTOP_APP_ID }}
123123
private-key: ${{ secrets.DOCKERDESKTOP_APP_PRIVATEKEY }}
@@ -126,7 +126,7 @@ jobs:
126126
${{ secrets.DOCKERDESKTOP_REPO }}
127127
-
128128
name: Trigger Docker Desktop e2e with edge version
129-
uses: actions/github-script@v7
129+
uses: actions/github-script@f28e40c7f34bde8b3046d885e986cb6290c5673b # v7
130130
with:
131131
github-token: ${{ steps.generate_token.outputs.token }}
132132
script: |

.github/workflows/pr-review.yml

Lines changed: 0 additions & 44 deletions
This file was deleted.

.github/workflows/stale.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
issues: write
2020
pull-requests: write
2121
steps:
22-
- uses: actions/stale@v9
22+
- uses: actions/stale@5bef64f19d7facfb25b37b414482c7164d639639 # v9
2323
with:
2424
repo-token: ${{ secrets.GITHUB_TOKEN }}
2525
stale-issue-message: >

0 commit comments

Comments
 (0)