Skip to content

Commit 3ba39b2

Browse files
committed
Update deploy.yml
1 parent e89a512 commit 3ba39b2

File tree

1 file changed

+5
-4
lines changed

1 file changed

+5
-4
lines changed

.github/workflows/deploy.yml

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -9,17 +9,15 @@ on:
99
workflow_dispatch:
1010

1111
# Allow this job to clone the repo and create a page deployment
12-
permissions:
13-
contents: read
14-
pages: write
15-
id-token: write
1612

1713
jobs:
1814
build:
1915
runs-on: ubuntu-latest
2016
steps:
2117
- name: Checkout your repository using git
2218
uses: actions/checkout@v4
19+
with:
20+
persist-credentials: false
2321

2422
- name: Install, build, and upload your site
2523
uses: withastro/action@v3
@@ -29,6 +27,9 @@ jobs:
2927
deploy:
3028
needs: build
3129
runs-on: ubuntu-latest
30+
permissions:
31+
pages: write
32+
id-token: write
3233
environment:
3334
name: github-pages
3435
url: ${{ steps.deployment.outputs.page_url }}

0 commit comments

Comments
 (0)