From b0b24982fb9be212af4cb4d1f0e7eaabfb194ac5 Mon Sep 17 00:00:00 2001 From: Gavin Reynolds Date: Tue, 18 Apr 2023 15:03:04 +0100 Subject: [PATCH] Fix missing GITHUB_TOKEN env var and permit write to contents Signed-off-by: Gavin Reynolds --- .github/workflows/cd-workflow.yml | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/.github/workflows/cd-workflow.yml b/.github/workflows/cd-workflow.yml index 2eba135a..9b165b29 100644 --- a/.github/workflows/cd-workflow.yml +++ b/.github/workflows/cd-workflow.yml @@ -11,7 +11,7 @@ on: # Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages permissions: - contents: read + contents: write pages: write id-token: write @@ -64,6 +64,8 @@ jobs: with: target_branch: gh-pages build_dir: build + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} sync-branch: runs-on: ubuntu-latest