Skip to content

Commit e385cd6

Browse files
committed
Add permissions to deployment workflow
1 parent 99cacdd commit e385cd6

File tree

1 file changed

+8
-1
lines changed

1 file changed

+8
-1
lines changed

.github/workflows/deploy.yml

+8-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,12 @@ on:
55
branches:
66
- master
77

8+
# Add these permissions
9+
permissions:
10+
contents: write
11+
pages: write
12+
id-token: write
13+
814
jobs:
915
build-and-deploy:
1016
runs-on: ubuntu-latest
@@ -25,4 +31,5 @@ jobs:
2531
uses: JamesIves/github-pages-deploy-action@v4
2632
with:
2733
folder: dist
28-
branch: gh-pages
34+
branch: gh-pages
35+
token: ${{ secrets.GITHUB_TOKEN }} # Add this line

0 commit comments

Comments
 (0)