Skip to content

Commit 21e6ded

Browse files
committed
ci: declare contents:read on the lint job
The lint job only runs eslint after checkout + setup-node. No GitHub API write. The block sits on the job rather than at workflow scope because the `test` job uses pkgjs/action's reusable node-test workflow, and adding a caller-level permissions block would intersect with the callee's grant. Style matches the workflow-level permissions block in commitlint.yml (contents:read) and release-please.yml (id-token:write + contents:read). Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
1 parent 37cc6f0 commit 21e6ded

1 file changed

Lines changed: 2 additions & 0 deletions

File tree

.github/workflows/nodejs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,8 @@ jobs:
1010
lint:
1111
name: Lint using ESLint
1212
runs-on: ubuntu-latest
13+
permissions:
14+
contents: read
1315
steps:
1416
- uses: actions/checkout@v6
1517
- name: Use latest Node.js LTS

0 commit comments

Comments
 (0)