Skip to content

Commit aa60c82

Browse files
authored
chore: pin third-party GitHub Actions to commit SHAs (#107)
## 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 GitHub Actions to fixed commit SHAs; main risk is an unexpected change in behavior if the pinned commits differ from the previously resolved tags. > > **Overview** > Pins third-party actions used by the `release-please` workflow to immutable commit SHAs to reduce supply-chain risk. > > Specifically updates `googleapis/release-please-action` to a commit SHA and pins the SLSA provenance generator used for the langchain package; other steps remain functionally the same aside from added inline comments on existing pinned actions. > > <sup>Written by [Cursor Bugbot](https://cursor.com/dashboard?tab=bugbot) for commit 1864310. This will update automatically on new commits. Configure [here](https://cursor.com/dashboard?tab=bugbot).</sup> <!-- /CURSOR_SUMMARY -->
2 parents 0458a6d + 1864310 commit aa60c82

1 file changed

Lines changed: 6 additions & 6 deletions

File tree

.github/workflows/release-please.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ jobs:
4747
package-server-ai-openai-released: ${{ steps.release.outputs['packages/ai-providers/server-ai-openai--release_created'] }}
4848
package-server-ai-openai-tag-name: ${{ steps.release.outputs['packages/ai-providers/server-ai-openai--tag_name'] }}
4949
steps:
50-
- uses: googleapis/release-please-action@v4
50+
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4
5151
id: release
5252

5353
release-server-ai:
@@ -68,7 +68,7 @@ jobs:
6868
python-version: '3.11'
6969

7070
- name: Install poetry
71-
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
71+
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439 # 7b6d33e44b4f08d7021a1dee3c044e9c253d6439
7272

7373
- uses: ./.github/actions/ci
7474
with:
@@ -109,7 +109,7 @@ jobs:
109109
python-version: '3.11'
110110

111111
- name: Install poetry
112-
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
112+
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439 # 7b6d33e44b4f08d7021a1dee3c044e9c253d6439
113113

114114
- uses: ./.github/actions/ci
115115
with:
@@ -146,7 +146,7 @@ jobs:
146146
python-version: '3.11'
147147

148148
- name: Install poetry
149-
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
149+
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439 # 7b6d33e44b4f08d7021a1dee3c044e9c253d6439
150150

151151
- uses: ./.github/actions/ci
152152
with:
@@ -191,7 +191,7 @@ jobs:
191191
actions: read # Needed for detecting the GitHub Actions environment.
192192
id-token: write # Needed for provenance signing.
193193
contents: write # Needed for uploading assets to the release.
194-
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@v2.0.0
194+
uses: slsa-framework/slsa-github-generator/.github/workflows/generator_generic_slsa3.yml@5a775b367a56d5bd118a224a811bba288150a563 # v2.0.0
195195
with:
196196
base64-subjects: "${{ needs.release-server-ai-langchain.outputs.package-hashes }}"
197197
upload-assets: true
@@ -215,7 +215,7 @@ jobs:
215215
python-version: '3.11'
216216

217217
- name: Install poetry
218-
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439
218+
uses: abatilo/actions-poetry@7b6d33e44b4f08d7021a1dee3c044e9c253d6439 # 7b6d33e44b4f08d7021a1dee3c044e9c253d6439
219219

220220
- uses: ./.github/actions/ci
221221
with:

0 commit comments

Comments
 (0)