Skip to content

Commit 853944a

Browse files
authored
chore: [SEC-7924] pin third-party GitHub Actions to commit SHAs (#452)
## Summary 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`](https://github.com/launchdarkly/semgrep-rules/blob/main/github-actions/third-party-action-not-pinned-to-commit-sha.yml) Semgrep rule. ## Test plan - [ ] Verify CI passes with pinned action SHAs <!-- ld-jira-link --> --- Related Jira issue: [SEC-7924: Unpinned GitHub Actions remediation](https://launchdarkly.atlassian.net/browse/SEC-7924) <!-- end-ld-jira-link -->
1 parent c6260be commit 853944a

File tree

2 files changed

+4
-4
lines changed

2 files changed

+4
-4
lines changed

.github/actions/publish-ruby-sdk/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,7 @@ runs:
3434
uses: actions/checkout@v4
3535

3636
- name: Install Ruby
37-
uses: ruby/setup-ruby@v1
37+
uses: ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64 # v1
3838
with:
3939
ruby-version: ${{ inputs.ruby-version }}
4040
bundler-cache: true

.github/workflows/ruby-plugin.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ jobs:
2828
with:
2929
token: ${{ secrets.GITHUB_TOKEN }}
3030
- name: Install Ruby
31-
uses: ruby/setup-ruby@v1
31+
uses: ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64 # v1
3232
with:
3333
ruby-version: ${{ matrix.ruby }}
3434
bundler-cache: true
@@ -53,7 +53,7 @@ jobs:
5353
with:
5454
token: ${{ secrets.GITHUB_TOKEN }}
5555
- name: Install Ruby
56-
uses: ruby/setup-ruby@v1
56+
uses: ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64 # v1
5757
with:
5858
ruby-version: '3.3'
5959
bundler-cache: true
@@ -74,7 +74,7 @@ jobs:
7474
with:
7575
token: ${{ secrets.GITHUB_TOKEN }}
7676
- name: Install Ruby
77-
uses: ruby/setup-ruby@v1
77+
uses: ruby/setup-ruby@3ff19f5e2baf30647122352b96108b1fbe250c64 # v1
7878
with:
7979
ruby-version: '3.3'
8080
bundler-cache: true

0 commit comments

Comments
 (0)