Skip to content

Commit 4bb0fd0

Browse files
authored
ci: unify versions of GitHub actions we use, pin SHAs (#657)
1 parent 06d7ef7 commit 4bb0fd0

7 files changed

Lines changed: 28 additions & 28 deletions

File tree

.github/workflows/ci.yml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -19,10 +19,10 @@ jobs:
1919
runs-on: ${{ github.repository == 'stainless-sdks/runloop-node' && '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: runloopai/checkout@main
2323

2424
- name: Set up Node
25-
uses: actions/setup-node@v4
25+
uses: runloopai/setup-node@main
2626
with:
2727
node-version: '18'
2828

@@ -41,10 +41,10 @@ jobs:
4141
contents: read
4242
id-token: write
4343
steps:
44-
- uses: actions/checkout@v4
44+
- uses: runloopai/checkout@main
4545

4646
- name: Set up Node
47-
uses: actions/setup-node@v4
47+
uses: runloopai/setup-node@main
4848
with:
4949
node-version: '18'
5050

@@ -57,7 +57,7 @@ jobs:
5757
- name: Get GitHub OIDC Token
5858
if: github.repository == 'stainless-sdks/runloop-node'
5959
id: github-oidc
60-
uses: actions/github-script@v6
60+
uses: runloopai/github-script@main
6161
with:
6262
script: core.setOutput('github_token', await core.getIDToken());
6363

@@ -74,10 +74,10 @@ jobs:
7474
runs-on: ${{ github.repository == 'stainless-sdks/runloop-node' && 'depot-ubuntu-24.04' || 'ubuntu-latest' }}
7575
if: github.event_name == 'push' || github.event.pull_request.head.repo.fork
7676
steps:
77-
- uses: actions/checkout@v4
77+
- uses: runloopai/checkout@main
7878

7979
- name: Set up Node
80-
uses: actions/setup-node@v4
80+
uses: runloopai/setup-node@main
8181
with:
8282
node-version: '20'
8383

.github/workflows/publish-docs.yml

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ jobs:
1515
runs-on: ubuntu-latest
1616
steps:
1717
- name: get the gh-pages repo
18-
uses: actions/checkout@v3
18+
uses: runloopai/checkout@main
1919
with:
2020
ref: gh-pages
2121

@@ -25,7 +25,7 @@ jobs:
2525
tar -cvf documentation.tar ./docs
2626
2727
- name: create a document artifact
28-
uses: actions/upload-artifact@v4
28+
uses: runloopai/upload-artifact@main
2929
with:
3030
name: documentation
3131
path: documentation.tar
@@ -35,17 +35,17 @@ jobs:
3535
runs-on: ubuntu-latest
3636
steps:
3737
- name: Checkout src
38-
uses: actions/checkout@v4
38+
uses: runloopai/checkout@main
3939

4040
- run: mkdir -p ./docs
4141
- name: Download the existing documents artifact
42-
uses: actions/download-artifact@v4
42+
uses: actions/download-artifact@018cc2cf5baa6db3ef3c5f8a56943fffe632ef53
4343
with:
4444
name: documentation
4545
- run: tar -xf documentation.tar ./docs -C ./docs
4646

4747
- name: Build
48-
uses: actions/setup-node@v4
48+
uses: runloopai/setup-node@main
4949
with:
5050
node-version: 22.x
5151
cache: 'yarn'
@@ -59,7 +59,7 @@ jobs:
5959
run: tar -cvf newdocumentation.tar ./docs
6060

6161
- name: create a new document artifact
62-
uses: actions/upload-artifact@v4
62+
uses: runloopai/upload-artifact@main
6363
with:
6464
name: newdocumentation
6565
path: newdocumentation.tar
@@ -69,13 +69,13 @@ jobs:
6969
runs-on: ubuntu-latest
7070
steps:
7171
- name: checkout the gh-pages repo
72-
uses: actions/checkout@v3
72+
uses: runloopai/checkout@main
7373
with:
7474
ref: gh-pages
7575

7676
- run: mkdir -p ./docs
7777
- name: Download the new documents artifact
78-
uses: actions/download-artifact@v4
78+
uses: runloopai/download-artifact@main
7979
with:
8080
name: newdocumentation
8181
- run: tar -xf newdocumentation.tar ./docs -C ./docs

.github/workflows/publish-npm.yml

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

1616
steps:
17-
- uses: actions/checkout@v4
17+
- uses: runloopai/checkout@main
1818

1919
- name: Set up Node
20-
uses: actions/setup-node@v3
20+
uses: runloopai/setup-node@main
2121
with:
2222
node-version: '20'
2323

.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 == 'runloopai/api-client-ts' && (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@v4
15+
- uses: runloopai/checkout@main
1616

1717
- name: Check release environment
1818
run: |

.github/workflows/sdk-coverage.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -21,10 +21,10 @@ jobs:
2121
timeout-minutes: 120
2222
steps:
2323
- name: Checkout
24-
uses: actions/checkout@v4
24+
uses: runloopai/checkout@main
2525

2626
- name: Setup Node
27-
uses: actions/setup-node@v4
27+
uses: runloopai/setup-node@main
2828
with:
2929
node-version: '20'
3030
cache: 'yarn'
@@ -56,7 +56,7 @@ jobs:
5656
run: yarn test:objects-coverage 2>&1 | tee test-output.log
5757

5858
- name: Upload coverage report
59-
uses: actions/upload-artifact@v4
59+
uses: runloopai/upload-artifact@main
6060
if: always()
6161
with:
6262
name: coverage-report
@@ -65,7 +65,7 @@ jobs:
6565

6666
- name: Comment results on PR
6767
if: always() && github.event_name == 'pull_request'
68-
uses: actions/github-script@v7
68+
uses: runloopai/github-script@main
6969
with:
7070
script: |
7171
const fs = require('fs');

.github/workflows/set-stable-tag.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -15,10 +15,10 @@ jobs:
1515
runs-on: ubuntu-latest
1616

1717
steps:
18-
- uses: actions/checkout@v4
18+
- uses: runloopai/checkout@main
1919

2020
- name: Set up Node
21-
uses: actions/setup-node@v3
21+
uses: runloopai/setup-node@main
2222
with:
2323
node-version: '20'
2424

.github/workflows/smoke-tests.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -17,10 +17,10 @@ jobs:
1717
timeout-minutes: 60
1818
steps:
1919
- name: Checkout
20-
uses: actions/checkout@v4
20+
uses: runloopai/checkout@main
2121

2222
- name: Setup Node
23-
uses: actions/setup-node@v4
23+
uses: runloopai/setup-node@main
2424
with:
2525
node-version: '20'
2626
cache: 'yarn'
@@ -52,7 +52,7 @@ jobs:
5252

5353
- name: Comment results on PR
5454
if: failure() && github.event_name == 'pull_request'
55-
uses: actions/github-script@v7
55+
uses: runloopai/github-script@main
5656
with:
5757
script: |
5858
const runUrl = `https://github.com/${context.repo.owner}/${context.repo.repo}/actions/runs/${context.runId}`;
@@ -72,7 +72,7 @@ jobs:
7272
7373
- name: Comment success on PR
7474
if: success() && github.event_name == 'pull_request'
75-
uses: actions/github-script@v7
75+
uses: runloopai/github-script@main
7676
with:
7777
script: |
7878
const comment = `## ✅ Smoke Tests Passed

0 commit comments

Comments
 (0)