From: Dan Nicholson Date: Tue, 25 May 2021 20:25:28 +0000 (-0600) Subject: workflow/docs: Give token write permission to push gh-pages X-Git-Tag: archive/raspbian/2022.1-3+rpi1~1^2~4^2~3^2~18^2 X-Git-Url: https://dgit.raspbian.org/?a=commitdiff_plain;h=bd42df4c9beeadf17234ecfc031a26bc16d93549;p=ostree.git workflow/docs: Give token write permission to push gh-pages The ostree repo has read permissions set for workflows, which prevents the documentation job from pushing the built docs to the gh-pages branch. Raise the job's permissions to write for repo contents to allow that. --- diff --git a/.github/workflows/docs.yml b/.github/workflows/docs.yml index 6ff16fe7..05ede2e9 100644 --- a/.github/workflows/docs.yml +++ b/.github/workflows/docs.yml @@ -10,6 +10,10 @@ jobs: docs: name: Build documentation runs-on: ubuntu-latest + permissions: + # This job pushes to the gh-pages branch, so the token needs write + # privileges for repo contents. + contents: write steps: - name: Checkout repository uses: actions/checkout@v2