From 6d73560590f6611c035d99d23562e82a67b6bf91 Mon Sep 17 00:00:00 2001 From: Matthew Miller Date: Thu, 15 Aug 2024 14:21:45 -0700 Subject: [PATCH] Update permissions on github-pages deploy job --- .github/workflows/deploy.yaml | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/.github/workflows/deploy.yaml b/.github/workflows/deploy.yaml index 4747249..7b75564 100644 --- a/.github/workflows/deploy.yaml +++ b/.github/workflows/deploy.yaml @@ -26,11 +26,18 @@ jobs: path: ./build/html deploy: + needs: build + + # Grant GITHUB_TOKEN the permissions required to make a Pages deployment + permissions: + pages: write # to deploy to Pages + id-token: write # to verify the deployment originates from an appropriate source + environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }} + runs-on: ubuntu-latest - needs: build steps: - name: Deploy to GitHub Pages id: deployment