Skip to content

Commit 0bca68d

Browse files
committed
cd: use permissions instead of PAT
1 parent b3c4ef8 commit 0bca68d

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

Diff for: .github/workflows/release.yml

+7-2
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
id-token: write
10+
contents: write
11+
pull-requests: write
12+
813
concurrency: ${{ github.workflow }}-${{ github.ref }}
914

1015
jobs:
@@ -15,7 +20,7 @@ jobs:
1520
- name: Checkout Repo
1621
uses: actions/checkout@v4
1722
with:
18-
token: ${{ secrets.PAT }}
23+
token: ${{ secrets.GITHUB_TOKEN }}
1924

2025
- name: Setup Node.js 20
2126
uses: actions/setup-node@v3
@@ -30,5 +35,5 @@ jobs:
3035
with:
3136
publish: npm run release
3237
env:
33-
GITHUB_TOKEN: ${{ secrets.PAT }}
38+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
3439
NPM_TOKEN: ${{ secrets.NPM_TOKEN }}

0 commit comments

Comments
 (0)