Skip to content

Commit 4ce4a12

Browse files
committed
test permissions workflow
1 parent beef2a8 commit 4ce4a12

File tree

2 files changed

+6
-3
lines changed

2 files changed

+6
-3
lines changed

.github/workflows/gh-pages-deploy.yaml

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,14 @@ jobs:
77
gh-pages-deploy:
88
name: Deploying to GitHub Pages
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
12+
pages: write
13+
id-token: write
14+
1015
steps:
1116
- name: Checkout
1217
uses: actions/checkout@v4
13-
with:
14-
token: ${{ secrets.GITHUB_TOKEN }}
1518

1619
- name: Setup Python
1720
uses: actions/setup-python@v4

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,5 +30,5 @@ And browse to `http://localhost:8080/`.
3030

3131
- Create branch called gh-pages
3232
- Repository -> Settings -> Pages -> Source -> Github Actions or Deploy From A Branch
33-
- Ensure GITHUB_TOKEN is in gh-pages-deploy.yaml
33+
- Ensure gh-pages-deploy.yaml has proper permissions config
3434

0 commit comments

Comments
 (0)