Skip to content

Commit 445bbbb

Browse files
fix(ci): pin third-party actions to full commit SHAs (#46)
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 513c1b8 commit 445bbbb

4 files changed

Lines changed: 5 additions & 5 deletions

File tree

‎.github/workflows/codeql.yml‎

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -39,11 +39,11 @@ jobs:
3939
- name: Checkout
4040
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
4141
- name: Initialize CodeQL
42-
uses: github/codeql-action/init@v4.38.0
42+
uses: github/codeql-action/init@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
4343
with:
4444
languages: ${{ matrix.language }}
4545
build-mode: ${{ matrix.build-mode }}
4646
- name: Perform CodeQL Analysis
47-
uses: github/codeql-action/analyze@v4.38.0
47+
uses: github/codeql-action/analyze@b96794f015dfd88f77b49b1c93e0fa7110f94c63 # v4.38.0
4848
with:
4949
category: "/language:${{ matrix.language }}"

‎.github/workflows/quality.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ jobs:
3030
run: |
3131
find . -type f -perm /111 -name "*.sh" | head -10 || true
3232
- name: Check for secrets
33-
uses: trufflesecurity/trufflehog@v3.97.4
33+
uses: trufflesecurity/trufflehog@363923b901c911a9164f50b6c423f47c15372b1c # v3.97.4
3434
with:
3535
path: ./
3636
base: ${{ github.event.pull_request.base.sha || github.event.before }}

‎.github/workflows/release.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@ jobs:
136136
# name: release-artifacts
137137
# path: artifacts/
138138
- name: Create GitHub Release
139-
uses: softprops/action-gh-release@v3.0.3
139+
uses: softprops/action-gh-release@efb35369e0ad2afab669f228072c1b0d510eae64 # v3.0.3
140140
with:
141141
body: ${{ needs.changelog.outputs.changelog }}
142142
draft: false

‎.github/workflows/sonarqube.yml‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,6 @@ jobs:
3131
with:
3232
fetch-depth: 0 # full history for accurate new-code detection
3333
- name: SonarQube Scan
34-
uses: SonarSource/sonarqube-scan-action@v8.2.1
34+
uses: SonarSource/sonarqube-scan-action@22918119ff8e1ca75a623e15c8296b6ea4fbe28f # v8.2.1
3535
env:
3636
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}

0 commit comments

Comments
 (0)