Skip to content

Commit 7831616

Browse files
committed
ci: add GitHub Actions permissions
- Add write permissions for contents and packages - Add permissions at workflow and job level - Fix GitHub release creation
1 parent c791180 commit 7831616

File tree

1 file changed

+10
-0
lines changed

1 file changed

+10
-0
lines changed

.github/workflows/ci.yml

+10
Original file line numberDiff line numberDiff line change
@@ -9,9 +9,16 @@ on:
99
release:
1010
types: [created]
1111

12+
permissions:
13+
contents: write
14+
packages: write
15+
1216
jobs:
1317
test:
1418
runs-on: ubuntu-latest
19+
permissions:
20+
contents: write
21+
packages: write
1522
strategy:
1623
matrix:
1724
node-version: [16.x, 18.x, 20.x]
@@ -75,6 +82,9 @@ jobs:
7582
needs: [test, build]
7683
runs-on: ubuntu-latest
7784
if: github.event_name == 'push' && startsWith(github.ref, 'refs/tags/v')
85+
permissions:
86+
contents: write
87+
packages: write
7888

7989
steps:
8090
- uses: actions/checkout@v3

0 commit comments

Comments
 (0)