Skip to content

Commit a8cc8da

Browse files
committed
Add permissions to deploy workflow
Explicitly set permissions for contents, pages, and id-token in the deploy.yml GitHub Actions workflow to support deployment to GitHub Pages.
1 parent 0713391 commit a8cc8da

1 file changed

Lines changed: 5 additions & 1 deletion

File tree

.github/workflows/deploy.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,14 @@
11
name: Deploy Docusaurus to GitHub Pages
2-
32
on:
43
push:
54
branches:
65
- main
76

7+
permissions:
8+
contents: write # allow pushing commits
9+
pages: write # allow requesting Pages builds
10+
id-token: write # needed by some page deployments
11+
812
jobs:
913
build-deploy:
1014
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)