Skip to content

Commit 68ea81e

Browse files
authored
chore: pin third-party GitHub Actions to commit SHAs (#25)
## 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 <!-- CURSOR_SUMMARY --> --- > [!NOTE] > **Low Risk** > Low risk: workflow-only changes that pin existing GitHub Actions to specific commits; failures would be limited to CI/release automation if a pinned SHA becomes unavailable. > > **Overview** > Pins third-party GitHub Actions to full commit SHAs for supply-chain hardening. > > Updates `ruby/setup-ruby` in the shared CI composite action and in the Windows/manual docs workflows, and pins `googleapis/release-please-action` in the release workflow; no application/runtime code changes. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 37021f7. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
2 parents 1fe67cc + 37021f7 commit 68ea81e

4 files changed

Lines changed: 4 additions & 4 deletions

File tree

.github/actions/ci/action.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ inputs:
88
runs:
99
using: composite
1010
steps:
11-
- uses: ruby/setup-ruby@v1
11+
- uses: ruby/setup-ruby@319994f95fa847cf3fb3cd3dbe89f6dcde9f178f # v1
1212
with:
1313
ruby-version: ${{ inputs.ruby-version }}
1414

.github/workflows/ci.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,7 @@ jobs:
4141
steps:
4242
- uses: actions/checkout@v4
4343

44-
- uses: ruby/setup-ruby@v1
44+
- uses: ruby/setup-ruby@319994f95fa847cf3fb3cd3dbe89f6dcde9f178f # v1
4545
with:
4646
ruby-version: 3.2
4747

.github/workflows/manual-publish-docs.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ jobs:
1111
steps:
1212
- uses: actions/checkout@v4
1313

14-
- uses: ruby/setup-ruby@v1
14+
- uses: ruby/setup-ruby@319994f95fa847cf3fb3cd3dbe89f6dcde9f178f # v1
1515
with:
1616
ruby-version: 3.1
1717

.github/workflows/release-please.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ jobs:
1616
release-created: ${{ steps.release.outputs.release_created }}
1717
tag-name: ${{ steps.release.outputs.tag_name }}
1818
steps:
19-
- uses: googleapis/release-please-action@v4
19+
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4
2020
id: release
2121

2222
release-sdk:

0 commit comments

Comments
 (0)