Skip to content

Commit c3b308c

Browse files
fix(ci): pin third-party actions to full commit SHAs (#129)
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 2aee589 commit c3b308c

4 files changed

Lines changed: 9 additions & 9 deletions

File tree

‎.github/workflows/codeql.yml‎

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

4040
steps:
4141
- name: Checkout
42-
uses: actions/checkout@v7.0.1
42+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4343

4444
- name: Initialize CodeQL
45-
uses: github/codeql-action/init@v4.38.0
45+
uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
4646
with:
4747
languages: ${{ matrix.language }}
4848
build-mode: ${{ matrix.build-mode }}
4949

5050
- name: Perform CodeQL Analysis
51-
uses: github/codeql-action/analyze@v4.38.0
51+
uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
5252
with:
5353
category: "/language:${{ matrix.language }}"

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

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ jobs:
2020
timeout-minutes: 15
2121
steps:
2222
- name: Trigger Propagation
23-
uses: peter-evans/repository-dispatch@v4.0.1
23+
uses: peter-evans/repository-dispatch@28959ce8df70de7be546dd1250a005dd32156697 # v4.0.1
2424
with:
2525
token: ${{ secrets.FARM_DISPATCH_TOKEN }}
2626
repository: hyperpolymath/.git-private-farm

‎.github/workflows/pages.yml‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -22,9 +22,9 @@ jobs:
2222
image: ghcr.io/stefan-hoeck/idris2-pack@sha256:f0758996a931fb35d9ecb1de273c4d59dabe2a09b433afc7e357f65a08b7e1ff
2323
steps:
2424
- name: Checkout Site
25-
uses: actions/checkout@v7.0.1
25+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2626
- name: Checkout Ddraig SSG
27-
uses: actions/checkout@v7.0.1
27+
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
2828
with:
2929
repository: hyperpolymath/ddraig-ssg
3030
path: .ddraig-ssg
@@ -41,7 +41,7 @@ jobs:
4141
fi
4242
./.ddraig-ssg/build/exec/ddraig build src _site https://hyperpolymath.github.io/${GITHUB_REPOSITORY#*/}
4343
- name: Upload artifact
44-
uses: actions/upload-pages-artifact@v5.0.0
44+
uses: actions/upload-pages-artifact@fc324d3547104276b827a68afc52ff2a11cc49c9 # v5.0.0
4545
with:
4646
path: '_site'
4747
deploy:
@@ -54,4 +54,4 @@ jobs:
5454
steps:
5555
- name: Deploy to GitHub Pages
5656
id: deployment
57-
uses: actions/deploy-pages@v5.0.1
57+
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)