diff --git a/.github/workflows/gh-pages.yml b/.github/workflows/gh-pages.yml index 7dc6f1c3..c36e6cef 100644 --- a/.github/workflows/gh-pages.yml +++ b/.github/workflows/gh-pages.yml @@ -27,15 +27,11 @@ defaults: run: shell: bash -# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages -permissions: - contents: read - pages: write - id-token: write - jobs: # Build job build: + permissions: + contents: read runs-on: ubuntu-latest env: HUGO_VERSION: ${{ github.event.inputs.hugoVersion || '0.146.0' }} @@ -66,6 +62,9 @@ jobs: path: ./public # Deployment job deploy: + permissions: + pages: write + id-token: write environment: name: github-pages url: ${{ steps.deployment.outputs.page_url }}