Skip to content

Commit afb63a6

Browse files
fix(ci): pin third-party actions to full commit SHAs (#179)
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 97ca1cb commit afb63a6

7 files changed

Lines changed: 22 additions & 22 deletions

File tree

‎.github/workflows/boj-build.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
timeout-minutes: 15
1313
steps:
1414
- name: Checkout
15-
uses: actions/checkout@v7.0.1
15+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
1616
- name: Trigger BoJ Server (Casket/ssg-mcp)
1717
run: |
1818
# Send a secure trigger to boj-server to build this repository

‎.github/workflows/casket-pages.yml‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -24,22 +24,22 @@ jobs:
2424
timeout-minutes: 15
2525
steps:
2626
- name: Checkout
27-
uses: actions/checkout@v7.0.1
27+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2828

2929
- name: Checkout casket-ssg
30-
uses: actions/checkout@v7.0.1
30+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3131
with:
3232
repository: hyperpolymath/casket-ssg
3333
path: .casket-ssg
3434

3535
- name: Setup GHCup
36-
uses: haskell-actions/setup@v2.12.0
36+
uses: haskell-actions/setup@6037f33647c3f17758a2356c80fc4a53d7e0685d # v2.12.0
3737
with:
3838
ghc-version: '9.8.2'
3939
cabal-version: '3.10'
4040

4141
- name: Cache Cabal
42-
uses: actions/cache@v6.1.0
42+
uses: actions/cache@55cc8345863c7cc4c66a329aec7e433d2d1c52a9 # v6.1.0
4343
with:
4444
path: |
4545
~/.cabal/packages
@@ -101,10 +101,10 @@ jobs:
101101
touch ../_site/.nojekyll
102102
103103
- name: Setup Pages
104-
uses: actions/configure-pages@v6.0.0
104+
uses: actions/configure-pages@45bfe0192ca1faeb007ade9deae92b16b8254a0d # v6.0.0
105105

106106
- name: Upload artifact
107-
uses: actions/upload-pages-artifact@v5.0.0
107+
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
108108
with:
109109
path: '_site'
110110

@@ -118,4 +118,4 @@ jobs:
118118
steps:
119119
- name: Deploy to GitHub Pages
120120
id: deployment
121-
uses: actions/deploy-pages@v5.0.1
121+
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1

‎.github/workflows/codeql.yml‎

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,15 @@ jobs:
4444

4545
steps:
4646
- name: Checkout
47-
uses: actions/checkout@v7.0.1
47+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4848

4949
- name: Initialize CodeQL
50-
uses: github/codeql-action/init@v4.38.0
50+
uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
5151
with:
5252
languages: ${{ matrix.language }}
5353
build-mode: ${{ matrix.build-mode }}
5454

5555
- name: Perform CodeQL Analysis
56-
uses: github/codeql-action/analyze@v4.38.0
56+
uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
5757
with:
5858
category: "/language:${{ matrix.language }}"

‎.github/workflows/dogfood-gate.yml‎

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ jobs:
2929

3030
steps:
3131
- name: Checkout repository
32-
uses: actions/checkout@v7.0.1
32+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3333

3434
- name: Check for A2ML files
3535
id: detect
@@ -70,7 +70,7 @@ jobs:
7070

7171
steps:
7272
- name: Checkout repository
73-
uses: actions/checkout@v7.0.1
73+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
7474

7575
- name: Check for K9 files
7676
id: detect
@@ -116,7 +116,7 @@ jobs:
116116

117117
steps:
118118
- name: Checkout repository
119-
uses: actions/checkout@v7.0.1
119+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
120120

121121
- name: Scan for invisible characters
122122
id: lint
@@ -248,7 +248,7 @@ jobs:
248248

249249
steps:
250250
- name: Checkout repository
251-
uses: actions/checkout@v7.0.1
251+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
252252

253253
- name: Check for Groove manifest
254254
id: groove
@@ -309,7 +309,7 @@ jobs:
309309

310310
steps:
311311
- name: Checkout repository
312-
uses: actions/checkout@v7.0.1
312+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
313313

314314
- name: Generate dogfooding scorecard
315315
run: |

‎.github/workflows/instant-sync.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ jobs:
2222
# Without the secret this step fails on every push (gitbot-fleet#433).
2323
# Skipping is honest; a red tick on a misconfigured repo is not a signal.
2424
if: ${{ secrets.FARM_DISPATCH_TOKEN != '' }}
25-
uses: peter-evans/repository-dispatch@v4.0.1
25+
uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1
2626
with:
2727
token: ${{ secrets.FARM_DISPATCH_TOKEN }}
2828
repository: hyperpolymath/.git-private-farm

‎.github/workflows/pages.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -25,9 +25,9 @@ jobs:
2525
image: ghcr.io/stefan-hoeck/idris2-pack@sha256:f0758996a931fb35d9ecb1de273c4d59dabe2a09b433afc7e357f65a08b7e1ff
2626
steps:
2727
- name: Checkout Site
28-
uses: actions/checkout@v7.0.1
28+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2929
- name: Checkout Ddraig SSG
30-
uses: actions/checkout@v7.0.1
30+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
3131
with:
3232
repository: hyperpolymath/ddraig-ssg
3333
path: .ddraig-ssg
@@ -44,7 +44,7 @@ jobs:
4444
fi
4545
./.ddraig-ssg/build/exec/ddraig build src _site https://hyperpolymath.github.io/${GITHUB_REPOSITORY#*/}
4646
- name: Upload artifact
47-
uses: actions/upload-pages-artifact@v5.0.0
47+
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
4848
with:
4949
path: '_site'
5050
deploy:
@@ -57,4 +57,4 @@ jobs:
5757
steps:
5858
- name: Deploy to GitHub Pages
5959
id: deployment
60-
uses: actions/deploy-pages@v5.0.1
60+
uses: actions/deploy-pages@368f82528645a54fb793d4d04e342629a3f51346 # v5.0.1

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ jobs:
4040
timeout-minutes: 5
4141
steps:
4242
- name: Send push notification email
43-
uses: hyperpolymath/smtp-notify-action@v0.3.0 # NOSONAR — pin authority is actions.lock (sha1-ede1191ef6ff3ac02c4f4d9efdf837ee517e11d7)
43+
uses: hyperpolymath/smtp-notify-action@22e7bdb322c430c1d0dac6b3bb307f4bb139d0be # NOSONAR — pin authority is actions.lock (sha1-ede1191ef6ff3ac02c4f4d9efdf837ee517e11d7)
4444
with:
4545
server_address: ${{ secrets.SMTP_HOST }}
4646
server_port: ${{ secrets.SMTP_PORT }}

0 commit comments

Comments
 (0)