Skip to content

Commit

Permalink
Add write permissions for GH Pages deploy
Browse files Browse the repository at this point in the history
  • Loading branch information
keichan34 committed Nov 14, 2024
1 parent b67bdd8 commit 0b624a6
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 6 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pages-main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ jobs:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
contents: write
pull-requests: write
pages: write
id-token: write
Expand All @@ -25,12 +25,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install and Build
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- run: |
Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/pages-preview.yml
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ jobs:
build-and-deploy:

permissions:
contents: read
contents: write
pull-requests: write
pages: write
id-token: write
Expand All @@ -28,12 +28,12 @@ jobs:

steps:
- name: Checkout
uses: actions/checkout@v3
uses: actions/checkout@v4
with:
fetch-depth: 0

- name: Install and Build
uses: actions/setup-node@v3
uses: actions/setup-node@v4
with:
node-version: 20
- run: |
Expand Down

0 comments on commit 0b624a6

Please sign in to comment.