Skip to content

Commit dfebc29

Browse files
keiloktqlclaude
andauthored
chore: harden GitHub Actions (P-2208) (#28)
- Delete with-next-app-router/.github/workflows/lint.yaml (stale; nested path GHA never executes; pinned actions/checkout@master) - build.yml: add workflow-level permissions: contents: read - build.yml: persist-credentials: false on all 3 checkouts - build.yml: quote $AUDIT_LEVEL in pnpm audit (SC2086) Refs P-2208. Co-authored-by: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
1 parent 8aaf80d commit dfebc29

2 files changed

Lines changed: 10 additions & 38 deletions

File tree

.github/workflows/build.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Build Examples
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches: [main]
@@ -14,6 +17,8 @@ jobs:
1417
any: ${{ steps.set.outputs.any }}
1518
steps:
1619
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
20+
with:
21+
persist-credentials: false
1722
- uses: dorny/paths-filter@d1c1ffe0248fe513906c8e24db8ea791d46f8590 # v3.0.3
1823
id: filter
1924
with:
@@ -118,6 +123,8 @@ jobs:
118123
name: ${{ matrix.name }}
119124
steps:
120125
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
126+
with:
127+
persist-credentials: false
121128

122129
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
123130
with:
@@ -200,6 +207,8 @@ jobs:
200207
name: audit (${{ matrix.name }})
201208
steps:
202209
- uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
210+
with:
211+
persist-credentials: false
203212

204213
- uses: actions/setup-node@48b55a011bda9f5d6aeb4c2d9c7362e8dae4041e # v6.4.0
205214
with:
@@ -221,4 +230,4 @@ jobs:
221230
# unfixable transitive findings (e.g. bigint-buffer has no
222231
# patched upstream release yet).
223232
AUDIT_LEVEL: ${{ matrix.audit || 'high' }}
224-
run: pnpm audit --prod --audit-level=$AUDIT_LEVEL
233+
run: pnpm audit --prod --audit-level="$AUDIT_LEVEL"

with-next-app-router/.github/workflows/lint.yaml

Lines changed: 0 additions & 37 deletions
This file was deleted.

0 commit comments

Comments
 (0)