Skip to content

Commit 42af9a0

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 69da3d6 commit 42af9a0

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/ci.yml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -26,14 +26,14 @@ jobs:
2626
github.repository == 'stainless-sdks/anthropic-go' &&
2727
(github.event_name == 'push' || github.event.pull_request.head.repo.fork)
2828
steps:
29-
- uses: actions/checkout@v6
29+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3030

3131
- name: Get GitHub OIDC Token
3232
if: |-
3333
github.repository == 'stainless-sdks/anthropic-go' &&
3434
!startsWith(github.ref, 'refs/heads/stl/')
3535
id: github-oidc
36-
uses: actions/github-script@v8
36+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
3737
with:
3838
script: core.setOutput('github_token', await core.getIDToken());
3939

@@ -53,10 +53,10 @@ jobs:
5353
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
5454

5555
steps:
56-
- uses: actions/checkout@v6
56+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
5757

5858
- name: Setup go
59-
uses: actions/setup-go@v5
59+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
6060
with:
6161
go-version-file: ./go.mod
6262

@@ -68,10 +68,10 @@ jobs:
6868
runs-on: ${{ github.repository == 'stainless-sdks/anthropic-go' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
6969
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
7070
steps:
71-
- uses: actions/checkout@v6
71+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
7272

7373
- name: Setup go
74-
uses: actions/setup-go@v5
74+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
7575
with:
7676
go-version-file: ./go.mod
7777

.github/workflows/create-releases.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
environment: production-release
1515

1616
steps:
17-
- uses: actions/checkout@v6
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818

1919
- uses: stainless-api/trigger-release-please@bb6677c5a04578eec1ccfd9e1913b5b78ed64c61 # v1.4.0
2020
id: release

.github/workflows/detect-breaking-changes.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,13 +15,13 @@ jobs:
1515
run: |
1616
echo "FETCH_DEPTH=$(expr ${{ github.event.pull_request.commits }} + 1)" >> $GITHUB_ENV
1717
18-
- uses: actions/checkout@v6
18+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1919
with:
2020
# Ensure we can check out the pull request base in the script below.
2121
fetch-depth: ${{ env.FETCH_DEPTH }}
2222

2323
- name: Setup go
24-
uses: actions/setup-go@v5
24+
uses: actions/setup-go@40f1582b2485089dde7abd97c1529aa768e1baff # v5.6.0
2525
with:
2626
go-version-file: ./go.mod
2727

0 commit comments

Comments
 (0)