Skip to content

Commit 809f277

Browse files
bschwedlerianpittwood
authored andcommitted
Pin remaining actions to commit SHAs
Completes the SHA pinning started in PR #443. The core build workflows (ci.yml, bakery-build-*.yml) were already pinned; this covers the auxiliary workflows that were missed: docs.yml, hadolint.yml, and the slack-build-notify composite action. Mutable git tags are the exact vector exploited in the tj-actions supply chain attack (Unit 42, March 2025) — attackers overwrote tags to point to malicious commits.
1 parent 93b45bb commit 809f277

3 files changed

Lines changed: 5 additions & 5 deletions

File tree

.github/actions/slack-build-notify/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ runs:
1717
steps:
1818
- name: Notify Slack on state transition
1919
if: inputs.slack-webhook-url != '' && github.repository_owner == 'posit-dev'
20-
uses: actions/github-script@v9
20+
uses: actions/github-script@3a2844b7e9c422d3c10d287c895573f7108da1b3 # v9.0.0
2121
env:
2222
SLACK_WEBHOOK_URL: ${{ inputs.slack-webhook-url }}
2323
CURRENT_RESULT: ${{ inputs.result }}

.github/workflows/docs.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,13 +14,13 @@ jobs:
1414
contents: write
1515
steps:
1616
- name: Check out repository
17-
uses: actions/checkout@v6
17+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818

1919
- name: Set up Quarto
20-
uses: quarto-dev/quarto-actions/setup@v2
20+
uses: quarto-dev/quarto-actions/setup@8a96df13519ee81fd526f2dfca5962811136661b # v2.2.0
2121

2222
- name: Render and Publish
23-
uses: quarto-dev/quarto-actions/publish@v2
23+
uses: quarto-dev/quarto-actions/publish@8a96df13519ee81fd526f2dfca5962811136661b # v2.2.0
2424
with:
2525
target: gh-pages
2626
path: posit-bakery/docs

.github/workflows/hadolint.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ jobs:
3737
steps:
3838

3939
- name: Checkout
40-
uses: actions/checkout@v6
40+
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
4141

4242
- name: Setup bakery
4343
uses: "posit-dev/images-shared/setup-bakery@main"

0 commit comments

Comments
 (0)