Skip to content

Commit 2e575ce

Browse files
Copilothortison
andcommitted
fix(actions): use github token for preview artifact download
Co-authored-by: hortison <160366376+hortison@users.noreply.github.com>
1 parent d578ae1 commit 2e575ce

File tree

1 file changed

+4
-1
lines changed

1 file changed

+4
-1
lines changed

.github/workflows/preview-site.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,14 +9,17 @@ on:
99
jobs:
1010
deploy-preview:
1111
runs-on: ubuntu-latest
12+
permissions:
13+
actions: read
14+
contents: read
1215
steps:
1316
- name: Checkout code
1417
uses: actions/checkout@v6
1518

1619
- name: Download Site dir
1720
uses: actions/download-artifact@v7
1821
with:
19-
github-token: ${{ secrets.GH_ACCESS_TOKEN }}
22+
github-token: ${{ github.token }}
2023
run-id: ${{ github.event.workflow_run.id }}
2124
name: public-dir
2225

0 commit comments

Comments
 (0)