Skip to content

Commit f6b6759

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 1eefaa9 commit f6b6759

File tree

2 files changed

+3
-3
lines changed

2 files changed

+3
-3
lines changed

.github/workflows/manual-publish.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,6 +34,6 @@ jobs:
3434

3535
- name: Publish package distributions to PyPI
3636
if: ${{ inputs.dry_run == 'false' }}
37-
uses: pypa/gh-action-pypi-publish@release/v1
37+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
3838
with:
3939
password: ${{env.PYPI_AUTH_TOKEN}}

.github/workflows/release-please.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
contents: write # Contents and pull-requests are for release-please to make releases.
1313
pull-requests: write
1414
steps:
15-
- uses: googleapis/release-please-action@v4
15+
- uses: googleapis/release-please-action@16a9c90856f42705d54a6fda1823352bdc62cf38 # v4
1616
id: release
1717

1818
- uses: actions/checkout@v4
@@ -44,6 +44,6 @@ jobs:
4444

4545
- name: Publish package distributions to PyPI
4646
if: ${{ steps.release.outputs.releases_created == 'true' }}
47-
uses: pypa/gh-action-pypi-publish@release/v1
47+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
4848
with:
4949
password: ${{env.PYPI_AUTH_TOKEN}}

0 commit comments

Comments
 (0)