Skip to content

Commit 27e5a99

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 8adf03e commit 27e5a99

3 files changed

Lines changed: 10 additions & 10 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -26,9 +26,9 @@ jobs:
2626
github.repository == 'stainless-sdks/hubspot-sdk-ruby' &&
2727
(github.event_name == 'push' || github.event.pull_request.head.repo.fork) && (github.event_name != 'push' || github.event.head_commit.message != 'codegen metadata')
2828
steps:
29-
- uses: actions/checkout@v6
29+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
3030
- name: Set up Ruby
31-
uses: ruby/setup-ruby@v1
31+
uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f # v1.306.0
3232
with:
3333
bundler-cache: false
3434
- run: |-
@@ -39,7 +39,7 @@ jobs:
3939
github.repository == 'stainless-sdks/hubspot-sdk-ruby' &&
4040
!startsWith(github.ref, 'refs/heads/stl/')
4141
id: github-oidc
42-
uses: actions/github-script@v8
42+
uses: actions/github-script@ed597411d8f924073f98dfc5c65a23a2325f34cd # v8.0.0
4343
with:
4444
script: core.setOutput('github_token', await core.getIDToken());
4545

@@ -60,9 +60,9 @@ jobs:
6060
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
6161

6262
steps:
63-
- uses: actions/checkout@v6
63+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
6464
- name: Set up Ruby
65-
uses: ruby/setup-ruby@v1
65+
uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f # v1.306.0
6666
with:
6767
bundler-cache: false
6868
- run: |-
@@ -76,9 +76,9 @@ jobs:
7676
runs-on: ${{ github.repository == 'stainless-sdks/hubspot-sdk-ruby' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
7777
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
7878
steps:
79-
- uses: actions/checkout@v6
79+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
8080
- name: Set up Ruby
81-
uses: ruby/setup-ruby@v1
81+
uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f # v1.306.0
8282
with:
8383
bundler-cache: false
8484
- run: |-

.github/workflows/publish-gem.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,9 +14,9 @@ jobs:
1414
runs-on: ubuntu-latest
1515

1616
steps:
17-
- uses: actions/checkout@v6
17+
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
1818
- name: Set up Ruby
19-
uses: ruby/setup-ruby@v1
19+
uses: ruby/setup-ruby@c4e5b1316158f92e3d49443a9d58b31d25ac0f8f # v1.306.0
2020
with:
2121
bundler-cache: false
2222
- 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 == 'HubSpot/hubspot-sdk-ruby' && (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)