From 707e26e656aff44a536b0a0e90d5e14de2ea57df Mon Sep 17 00:00:00 2001 From: timokluser-dev Date: Sat, 23 Sep 2023 11:48:17 +0200 Subject: [PATCH] fix token permissions --- .github/workflows/generate.yml | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/.github/workflows/generate.yml b/.github/workflows/generate.yml index 346cc3213..78d2285b2 100644 --- a/.github/workflows/generate.yml +++ b/.github/workflows/generate.yml @@ -13,6 +13,12 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 120 container: node:18.18.0-alpine3.18 + permissions: + pages: write + id-token: write + environment: + name: github-pages + url: ${{ steps.gh-pages.outputs.page_url }} steps: - name: checkout uses: actions/checkout@v4 @@ -28,6 +34,7 @@ jobs: name: 'github-pages' path: 'dist/' - name: publish to pages + id: gh-pages uses: actions/deploy-pages@v2 with: artifact_name: 'github-pages'