Skip to content

Commit 8daf101

Browse files
fix(ci): pin third-party actions to full commit SHAs (#58)
fix(ci): pin third-party actions to full commit SHAs The account's Actions policy requires a full-length SHA ref. A tag or branch ref is refused at startup — `startup_failure`, no jobs, "this workflow graph cannot be shown" — so these workflows could not run at all. This resolves each ref to the commit it currently points at and records the ref in a trailing comment, e.g. `actions/checkout@<sha> # v4`. `dtolnay/rust-toolchain` takes its toolchain from the ref itself, so those steps also gained an explicit `with: toolchain:` input; without it, a SHA ref would silently lose the channel. No behaviour is intended to change beyond the pins.
1 parent 1f3fc57 commit 8daf101

11 files changed

Lines changed: 40 additions & 46 deletions

.github/workflows/actions.lock

Lines changed: 29 additions & 45 deletions
Original file line numberDiff line numberDiff line change
@@ -4,14 +4,14 @@
44
version: 'v0.0.2'
55
workflows:
66
'.github/workflows/boj-build.yml':
7-
- 'actions/checkout@v4.1.7'
7+
- 'actions/checkout@v7.0.1'
88
'.github/workflows/casket-pages.yml':
9-
- 'actions/cache@v4.3.0'
10-
- 'actions/checkout@v4.1.1'
11-
- 'actions/configure-pages@v5.0.0'
12-
- 'actions/deploy-pages@v4.0.5'
13-
- 'actions/upload-pages-artifact@v3.0.1'
14-
- 'haskell-actions/setup@v2.7.5'
9+
- 'actions/cache@v6.1.0'
10+
- 'actions/checkout@v7.0.1'
11+
- 'actions/configure-pages@v6.0.0'
12+
- 'actions/deploy-pages@v5.0.1'
13+
- 'actions/upload-pages-artifact@v5.0.0'
14+
- 'haskell-actions/setup@v2.12.0'
1515
'.github/workflows/governance.yml': []
1616
'.github/workflows/hypatia-scan.yml': []
1717
'.github/workflows/instant-sync.yml':
@@ -22,65 +22,49 @@ workflows:
2222
'.github/workflows/push-email-notify.yml':
2323
- 'dawidd6/action-send-mail@v3.12.0'
2424
'.github/workflows/secret-scanner.yml':
25-
- 'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1'
26-
- 'actions/checkout@v4.4.0'
25+
- 'actions/checkout@v7.0.1'
2726
- 'trufflesecurity/trufflehog@main'
2827
dependencies:
29-
'actions/cache@v4.3.0':
30-
ref: 'v4.3.0'
31-
commit: 'sha1-0057852bfaa89a56745cba8c7296529d2fc39830'
28+
'actions/cache@v6.1.0':
29+
ref: 'v6.1.0'
30+
commit: 'sha1-55cc8345863c7cc4c66a329aec7e433d2d1c52a9'
3231
owner_id: 44036562
3332
repo_id: 215566462
34-
'actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1':
33+
'actions/checkout@v7.0.1':
3534
ref: 'v7.0.1'
3635
commit: 'sha1-3d3c42e5aac5ba805825da76410c181273ba90b1'
3736
owner_id: 44036562
3837
repo_id: 197814629
39-
'actions/checkout@v4.1.1':
40-
ref: 'v4.1.1'
41-
commit: 'sha1-b4ffde65f46336ab88eb53be808477a3936bae11'
42-
owner_id: 44036562
43-
repo_id: 197814629
44-
'actions/checkout@v4.1.7':
45-
ref: 'v4.1.7'
46-
commit: 'sha1-692973e3d937129bcbf40652eb9f2f61becf3332'
47-
owner_id: 44036562
48-
repo_id: 197814629
49-
'actions/checkout@v4.4.0':
50-
ref: 'v4.4.0'
51-
commit: 'sha1-11d5960a326750d5838078e36cf38b85af677262'
52-
owner_id: 44036562
53-
repo_id: 197814629
54-
'actions/configure-pages@v5.0.0':
55-
ref: 'v5.0.0'
56-
commit: 'sha1-983d7736d9b0ae728b81ab479565c72886d7745b'
38+
'actions/configure-pages@v6.0.0':
39+
ref: 'v6.0.0'
40+
commit: 'sha1-45bfe0192ca1faeb007ade9deae92b16b8254a0d'
5741
owner_id: 44036562
5842
repo_id: 513659658
59-
'actions/deploy-pages@v4.0.5':
60-
ref: 'v4.0.5'
61-
commit: 'sha1-d6db90164ac5ed86f2b6aed7e0febac5b3c0c03e'
43+
'actions/deploy-pages@v5.0.1':
44+
ref: 'v5.0.1'
45+
commit: 'sha1-368f82528645a54fb793d4d04e342629a3f51346'
6246
owner_id: 44036562
6347
repo_id: 438112499
64-
'actions/upload-artifact@v4':
65-
ref: 'v4'
66-
commit: 'sha1-ea165f8d65b6e75b540449e92b4886f43607fa02'
48+
'actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f':
49+
ref: 'v7.0.0'
50+
commit: 'sha1-bbbca2ddaa5d8feaa63e36b76fdaad77386f024f'
6751
owner_id: 44036562
6852
repo_id: 192625955
69-
'actions/upload-pages-artifact@v3.0.1':
70-
ref: 'v3.0.1'
71-
commit: 'sha1-56afc609e74202658d3ffba0e8f6dda462b719fa'
53+
'actions/upload-pages-artifact@v5.0.0':
54+
ref: 'v5.0.0'
55+
commit: 'sha1-fc324d3547104276b827a68afc52ff2a11cc49c9'
7256
owner_id: 44036562
7357
repo_id: 496012378
7458
uses:
75-
- 'actions/upload-artifact@v4'
59+
- 'actions/upload-artifact@bbbca2ddaa5d8feaa63e36b76fdaad77386f024f'
7660
'dawidd6/action-send-mail@v3.12.0':
7761
ref: 'v3.12.0'
78-
commit: 'sha1-6e502825a508b867ab2954ad6343b68787624c01'
62+
commit: 'sha1-67ce3558d613188179559c61d3565140cf389968'
7963
owner_id: 9713907
8064
repo_id: 222439721
81-
'haskell-actions/setup@v2.7.5':
82-
ref: 'v2.7.5'
83-
commit: 'sha1-ec49483bfc012387b227434aba94f59a6ecd0900'
65+
'haskell-actions/setup@v2.12.0':
66+
ref: 'v2.12.0'
67+
commit: 'sha1-6037f33647c3f17758a2356c80fc4a53d7e0685d'
8468
owner_id: 75048950
8569
repo_id: 623796603
8670
'peter-evans/repository-dispatch@v4.0.1':

.github/workflows/boj-build.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# This workflow is managed by gh actions-lock.
12
# SPDX-License-Identifier: MPL-2.0
23
# This workflow is managed by gh actions-lock.
34
# This workflow is managed by gh actions-lock.

.github/workflows/casket-pages.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# This workflow is managed by gh actions-lock.
12
# SPDX-License-Identifier: MPL-2.0
23
# This workflow is managed by gh actions-lock.
34
# This workflow is managed by gh actions-lock.

.github/workflows/governance.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# This workflow is managed by gh actions-lock.
12
# SPDX-License-Identifier: PMPL-1.0-or-later
23
# This workflow is managed by gh actions-lock.
34
# This workflow is managed by gh actions-lock.

.github/workflows/hypatia-scan.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# This workflow is managed by gh actions-lock.
12
# SPDX-License-Identifier: PMPL-1.0-or-later
23
# This workflow is managed by gh actions-lock.
34
# This workflow is managed by gh actions-lock.

.github/workflows/instant-sync.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# This workflow is managed by gh actions-lock.
12
# SPDX-License-Identifier: MPL-2.0
23
# This workflow is managed by gh actions-lock.
34
# This workflow is managed by gh actions-lock.

.github/workflows/label-triage.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# This workflow is managed by gh actions-lock.
12
# SPDX-License-Identifier: MPL-2.0
23
name: Label Triage
34

.github/workflows/labels.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# This workflow is managed by gh actions-lock.
12
# SPDX-License-Identifier: MPL-2.0
23
name: Labels
34

.github/workflows/mirror.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# This workflow is managed by gh actions-lock.
12
# SPDX-License-Identifier: MPL-2.0
23
# This workflow is managed by gh actions-lock.
34
# This workflow is managed by gh actions-lock.

.github/workflows/push-email-notify.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# This workflow is managed by gh actions-lock.
12
# SPDX-License-Identifier: MPL-2.0
23
# This workflow is managed by gh actions-lock.
34
# This workflow is managed by gh actions-lock.
@@ -17,7 +18,7 @@ jobs:
1718
runs-on: ubuntu-latest
1819
steps:
1920
- name: Send push notification email
20-
uses: dawidd6/action-send-mail@v22
21+
uses: dawidd6/action-send-mail@v3.12.0
2122
with:
2223
server_address: ${{ secrets.SMTP_HOST }}
2324
server_port: ${{ secrets.SMTP_PORT }}

0 commit comments

Comments
 (0)