Skip to content

Commit 466c748

Browse files
committed
ci: remove permissions from CI workflow and ensure OIDC is set in publish workflow
1 parent f737333 commit 466c748

2 files changed

Lines changed: 1 addition & 6 deletions

File tree

.github/workflows/ci.yml

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,10 +14,6 @@ on:
1414
- ".npmignore"
1515
- "package*.json"
1616

17-
permissions:
18-
id-token: write # Required for OIDC
19-
contents: read
20-
2117
concurrency:
2218
group: ci-${{ github.head_ref }}
2319
cancel-in-progress: true

.github/workflows/publish.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@ on:
44
workflow_dispatch:
55

66
permissions:
7+
id-token: write # Required for OIDC
78
contents: read
89

910
jobs:
@@ -23,5 +24,3 @@ jobs:
2324
run: pnpm install && pnpm run build
2425
- name: Publish package on NPM
2526
run: pnpm publish
26-
env:
27-
NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)