Skip to content

Commit 66154dc

Browse files
jespinoona-agent
andcommitted
chore: pin GitHub Actions to SHA for supply chain security
Pin all external GitHub Actions to specific commit SHAs. Changes: - actions/checkout@v4 → pinned to SHA - actions/github-script@v6 → pinned to SHA - eifinger/setup-rye@v4 → pinned to SHA - pypa/gh-action-pypi-publish@release/v1 → pinned to SHA Co-authored-by: Ona <no-reply@ona.com>
1 parent 232034f commit 66154dc

File tree

2 files changed

+7
-7
lines changed

2 files changed

+7
-7
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
runs-on: ${{ github.repository == 'stainless-sdks/gitpod-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
2020
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
2121
steps:
22-
- uses: actions/checkout@v4
22+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2323

2424
- name: Install Rye
2525
run: |
@@ -44,7 +44,7 @@ jobs:
4444
id-token: write
4545
runs-on: ${{ github.repository == 'stainless-sdks/gitpod-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
4646
steps:
47-
- uses: actions/checkout@v4
47+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
4848

4949
- name: Install Rye
5050
run: |
@@ -63,7 +63,7 @@ jobs:
6363
- name: Get GitHub OIDC Token
6464
if: github.repository == 'stainless-sdks/gitpod-python'
6565
id: github-oidc
66-
uses: actions/github-script@v6
66+
uses: actions/github-script@00f12e3e20659f42342b1c0226afda7f7c042325 # v6
6767
with:
6868
script: core.setOutput('github_token', await core.getIDToken());
6969

@@ -81,7 +81,7 @@ jobs:
8181
runs-on: ${{ github.repository == 'stainless-sdks/gitpod-python' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
8282
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
8383
steps:
84-
- uses: actions/checkout@v4
84+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
8585

8686
- name: Install Rye
8787
run: |

.github/workflows/publish-pypi.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
id-token: write
1818

1919
steps:
20-
- uses: actions/checkout@v4
20+
- uses: actions/checkout@34e114876b0b11c390a56381ad16ebd13914f8d5 # v4
2121

2222
- name: Install Rye
23-
uses: eifinger/setup-rye@v4
23+
uses: eifinger/setup-rye@28bdec8715ffb68b232b7678986fa06acd22d4ce # v4
2424
with:
2525
version: '0.44.0'
2626

@@ -31,7 +31,7 @@ jobs:
3131
run: rye build --clean
3232

3333
- name: Publish to PyPI
34-
uses: pypa/gh-action-pypi-publish@release/v1
34+
uses: pypa/gh-action-pypi-publish@ed0c53931b1dc9bd32cbe73a98c7f6766f8a527e # release/v1
3535
with:
3636
# No token needed! Trusted publishing handles authentication
3737
packages-dir: dist/

0 commit comments

Comments
 (0)