Skip to content

Commit cae6353

Browse files
authored
Use new self-repository syntax for local GitHub actions (#706)
1 parent c1722b9 commit cae6353

4 files changed

Lines changed: 16 additions & 46 deletions

File tree

‎.github/actions/ci-setup/action.yml‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,11 @@ inputs:
1010
runs:
1111
using: composite
1212
steps:
13+
- name: Check out repo
14+
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
15+
with:
16+
persist-credentials: false
17+
1318
- name: Set up pnpm
1419
uses: pnpm/action-setup@8912a9102ac27614460f54aedde9e1e7f9aec20d # v6.0.5
1520

‎.github/workflows/ci.yml‎

Lines changed: 4 additions & 19 deletions
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@ jobs:
3232
persist-credentials: false
3333

3434
- name: Run zizmor
35-
uses: zizmorcore/zizmor-action@5f14fd08f7cf1cb1609c1e344975f152c7ee938d # v0.5.6
35+
uses: zizmorcore/zizmor-action@3dc1ecc9bcb9e94e9b2c709687979e1298497054 # v0.6.2
3636
with:
3737
persona: pedantic
3838
annotations: true
@@ -43,12 +43,7 @@ jobs:
4343
runs-on: ubuntu-latest
4444
timeout-minutes: 20
4545
steps:
46-
- name: Check out repo
47-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
48-
with:
49-
persist-credentials: false
50-
51-
- uses: ./.github/actions/ci-setup
46+
- uses: $/.github/actions/ci-setup
5247

5348
- name: Test
5449
run: pnpm test
@@ -58,12 +53,7 @@ jobs:
5853
runs-on: ubuntu-latest
5954
timeout-minutes: 20
6055
steps:
61-
- name: Check out repo
62-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
63-
with:
64-
persist-credentials: false
65-
66-
- uses: ./.github/actions/ci-setup
56+
- uses: $/.github/actions/ci-setup
6757

6858
- name: Typecheck
6959
run: pnpm typecheck
@@ -73,12 +63,7 @@ jobs:
7363
runs-on: ubuntu-latest
7464
timeout-minutes: 20
7565
steps:
76-
- name: Check out repo
77-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
78-
with:
79-
persist-credentials: false
80-
81-
- uses: ./.github/actions/ci-setup
66+
- uses: $/.github/actions/ci-setup
8267

8368
- name: Format
8469
run: pnpm format

‎.github/workflows/publish.yml‎

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -24,12 +24,7 @@ jobs:
2424
permissions:
2525
contents: read # to check out repo (actions/checkout)
2626
steps:
27-
- name: Check out repo
28-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
29-
with:
30-
persist-credentials: false
31-
32-
- uses: ./.github/actions/ci-setup
27+
- uses: $/.github/actions/ci-setup
3328
with:
3429
skip-cache: true # avoid cache poisoning attacks
3530

@@ -50,19 +45,14 @@ jobs:
5045
permissions:
5146
contents: read # to check out repo (actions/checkout)
5247
steps:
53-
- name: Check out repo
54-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
55-
with:
56-
persist-credentials: false
57-
58-
- uses: ./.github/actions/ci-setup
48+
- uses: $/.github/actions/ci-setup
5949
with:
6050
skip-cache: true # avoid cache poisoning attacks
6151

6252
- name: Build
6353
run: pnpm build
6454

65-
- uses: ./.github/actions/setup-bot-auth
55+
- uses: $/.github/actions/setup-bot-auth
6656
id: bot-auth
6757
with:
6858
client-id: ${{ vars.APP_CLIENT_ID }}
@@ -87,19 +77,14 @@ jobs:
8777
permissions:
8878
contents: write # to create release and have it authored by github-actions (changesets/action)
8979
steps:
90-
- name: Check out repo
91-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
92-
with:
93-
persist-credentials: false
94-
95-
- uses: ./.github/actions/ci-setup
80+
- uses: $/.github/actions/ci-setup
9681
with:
9782
skip-cache: true # avoid cache poisoning attacks
9883

9984
- name: Build
10085
run: pnpm build
10186

102-
- uses: ./.github/actions/setup-bot-auth
87+
- uses: $/.github/actions/setup-bot-auth
10388
id: bot-auth
10489
with:
10590
client-id: ${{ vars.APP_CLIENT_ID }}

‎.github/workflows/release-pr.yml‎

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,7 @@ jobs:
122122
pull-requests: write # to comment on the pull request with the release result (changesets/action)
123123

124124
steps:
125-
- name: Check out repo
126-
uses: actions/checkout@df4cb1c069e1874edd31b4311f1884172cec0e10 # v6.0.3
127-
with:
128-
persist-credentials: false
129-
130-
- uses: ./.github/actions/ci-setup
125+
- uses: $/.github/actions/ci-setup
131126
with:
132127
skip-cache: true # avoid cache poisoning attacks
133128

@@ -166,7 +161,7 @@ jobs:
166161
- name: Build
167162
run: pnpm build
168163

169-
- uses: ./.github/actions/setup-bot-auth
164+
- uses: $/.github/actions/setup-bot-auth
170165
id: bot-auth
171166
with:
172167
client-id: ${{ vars.APP_CLIENT_ID }}

0 commit comments

Comments
 (0)