Skip to content

Commit 146f39d

Browse files
ci: pin GitHub Actions to commit SHAs
Pin all GitHub Actions referenced in generated workflows (both first-party `actions/*` and third-party) to immutable commit SHAs. Updating pinned actions is now a deliberate codegen-side bump rather than implicit on every workflow run.
1 parent c82dc15 commit 146f39d

3 files changed

Lines changed: 14 additions & 14 deletions

File tree

.github/workflows/ci.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,15 +21,15 @@ jobs:
2121
runs-on: ${{ github.repository == 'stainless-sdks/warp-api-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
2222
if: (github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
2323
steps:
24-
- uses: actions/checkout@v6
24+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2525

2626
- name: Set up Node
27-
uses: actions/setup-node@v4
27+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
2828
with:
2929
node-version: '20'
3030

3131
- name: Set up pnpm
32-
uses: pnpm/action-setup@v4
32+
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
3333
with:
3434
version: '10.30.1'
3535

@@ -48,15 +48,15 @@ jobs:
4848
contents: read
4949
id-token: write
5050
steps:
51-
- uses: actions/checkout@v6
51+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5252

5353
- name: Set up Node
54-
uses: actions/setup-node@v4
54+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
5555
with:
5656
node-version: '20'
5757

5858
- name: Set up pnpm
59-
uses: pnpm/action-setup@v4
59+
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
6060
with:
6161
version: '10.30.1'
6262

@@ -71,7 +71,7 @@ jobs:
7171
github.repository == 'stainless-sdks/warp-api-typescript' &&
7272
!startsWith(github.ref, 'refs/heads/stl/')
7373
id: github-oidc
74-
uses: actions/github-script@v8
74+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
7575
with:
7676
script: core.setOutput('github_token', await core.getIDToken());
7777

@@ -90,15 +90,15 @@ jobs:
9090
runs-on: ${{ github.repository == 'stainless-sdks/warp-api-typescript' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
9191
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
9292
steps:
93-
- uses: actions/checkout@v6
93+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
9494

9595
- name: Set up Node
96-
uses: actions/setup-node@v4
96+
uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0
9797
with:
9898
node-version: '20'
9999

100100
- name: Set up pnpm
101-
uses: pnpm/action-setup@v4
101+
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
102102
with:
103103
version: '10.30.1'
104104

.github/workflows/publish-npm.yml

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

1919
steps:
20-
- uses: actions/checkout@v6
20+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
2121

2222
- name: Set up Node
23-
uses: actions/setup-node@v3
23+
uses: actions/setup-node@3235b876344d2a9aa001b8d1453c930bba69e610 # v3.9.1
2424
with:
2525
node-version: '20'
2626

2727
- name: Set up pnpm
28-
uses: pnpm/action-setup@v4
28+
uses: pnpm/action-setup@b906affcce14559ad1aafd4ab0e942779e9f58b1 # v4.3.0
2929

3030
- name: Install dependencies
3131
run: |

.github/workflows/release-doctor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,7 @@ jobs:
1212
if: github.repository == 'warpdotdev/oz-sdk-typescript' && (github.event_name == 'push' || github.event_name == 'workflow_dispatch' || startsWith(github.head_ref, 'release-please') || github.head_ref == 'next')
1313

1414
steps:
15-
- uses: actions/checkout@v6
15+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1616

1717
- name: Check release environment
1818
run: |

0 commit comments

Comments
 (0)