Skip to content

Commit 7b7b099

Browse files
authored
security: Update version pins to use SHAs instead (#30)
## 💌 Description Hello! I love the work you did on this action and want to include it in my company's CI. It's saving me a ton of time. I have made an update on my fork to to harden the security of this action and to help mitigate some upstream supply chain risks. I bet you've heard of the tj-actions supply chain attack but for posterity there's more info here: https://www.stepsecurity.io/blog/harden-runner-detection-tj-actions-changed-files-action-is-compromised That attack is the main reason for me making this change here and to some of our other upstream github actions. Let me know if there's anything that needs changing. ## 🏗️ Type of change <!-- Mark with an `x` all the checkboxes that apply (like `[x]`) --> - [ ] 📚 Examples/docs/tutorials - [ ] 🐛 Bug fix (non-breaking change which fixes an issue) - [ ] 🥂 Improvement (non-breaking change which improves an existing feature) - [ ] 🚀 New feature (non-breaking change which adds functionality) - [ ] 💥 Breaking change (fix or feature that would cause existing functionality to change) - [x] 🚨 Security fix - [ ] ⬆️ Dependencies update ## ✅ Checklist <!-- Mark with an `x` all the checkboxes that apply (like `[x]`) --> - [x] I've read the [`Code of Conduct`](https://github.com/raven-actions/actionlint/blob/main/.github/CODE_OF_CONDUCT.md) document. - [x] I've read the [`Contributing`](https://github.com/raven-actions/actionlint/blob/main/.github/CONTRIBUTING.md) guide.
1 parent 01fce4f commit 7b7b099

File tree

1 file changed

+5
-5
lines changed

1 file changed

+5
-5
lines changed

action.yml

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -89,7 +89,7 @@ runs:
8989
using: composite
9090
steps:
9191
- name: Set tool environment
92-
uses: actions/github-script@v7
92+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
9393
id: environment
9494
with:
9595
github-token: ${{ inputs.github-token || inputs.token || env.GITHUB_TOKEN }}
@@ -197,7 +197,7 @@ runs:
197197
- name: Set cache
198198
if: ${{ inputs.cache == 'true' }}
199199
id: tool-cache
200-
uses: actions/cache@v4
200+
uses: actions/cache@5a3ec84eff668545956fd18022155c47e93e2684 # v4
201201
with:
202202
path: ${{ steps.environment.outputs.tool-dir-path }}
203203
key: ${{ format('{0}-{1}-{2}-{3}', steps.environment.outputs.tool-name, steps.environment.outputs.tool-version-semver, runner.os, runner.arch) }}
@@ -209,7 +209,7 @@ runs:
209209
working-directory: ${{ inputs.working-directory }}
210210

211211
- name: Download tool
212-
uses: actions/github-script@v7
212+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
213213
if: ${{ steps.tool-cache.outputs.cache-hit != 'true' }}
214214
with:
215215
github-token: ${{ inputs.github-token || inputs.token || env.GITHUB_TOKEN }}
@@ -245,7 +245,7 @@ runs:
245245
INPUT_MATCHER_PATH: ${{ steps.environment.outputs.matcher-path }}
246246

247247
- name: Install tool dependencies
248-
uses: actions/github-script@v7
248+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
249249
if: ${{ inputs.pyflakes == 'true' || inputs.shellcheck == 'true' }}
250250
id: tool-dependencies
251251
with:
@@ -311,7 +311,7 @@ runs:
311311
INPUT_SHELLCHECK: ${{ inputs.shellcheck }}
312312

313313
- name: Run tool
314-
uses: actions/github-script@v7
314+
uses: actions/github-script@60a0d83039c74a4aee543508d2ffcb1c3799cdea # v7
315315
id: tool-runner
316316
with:
317317
github-token: ${{ inputs.github-token || inputs.token || env.GITHUB_TOKEN }}

0 commit comments

Comments
 (0)