Skip to content

Commit 4596711

Browse files
committed
[SEC-7924] chore: pin third-party GitHub Actions to commit SHAs
Pin all third-party GitHub Actions to full-length commit SHAs to prevent supply chain attacks. Addresses findings from the third-party-action-not-pinned-to-commit-sha Semgrep rule.
1 parent 48f444e commit 4596711

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/actions/setup/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ inputs:
1212
runs:
1313
using: composite
1414
steps:
15-
- uses: ruby/setup-ruby@v1
15+
- uses: ruby/setup-ruby@319994f95fa847cf3fb3cd3dbe89f6dcde9f178f # v1
1616
with:
1717
ruby-version: ${{ inputs.version }}
1818
bundler: 2

.github/workflows/release-please.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
upload-tag-name: ${{ steps.release.outputs.tag_name }}
1919

2020
steps:
21-
- uses: googleapis/release-please-action@v4
21+
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4
2222
id: release
2323

2424
build-ruby-gem:
@@ -81,7 +81,7 @@ jobs:
8181
id-token: write
8282
contents: write
8383

84-
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
84+
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@5a775b367a56d5bd118a224a811bba288150a563 # v2.0.0
8585
with:
8686
base64-subjects: "${{ needs.publish.outputs.gem-hash }}"
8787
upload-assets: true

0 commit comments

Comments
 (0)