From e2d8e47d2b02860881381318dcc088e150c0fcde Mon Sep 17 00:00:00 2001 From: Daniel Thwaites Date: Fri, 8 Jan 2021 15:03:01 +0000 Subject: [PATCH] docs(actions): PAT must be passed to checkout step too Fixes #311 --- docs/automatic-releases/github-actions.rst | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/docs/automatic-releases/github-actions.rst b/docs/automatic-releases/github-actions.rst index 008faefca..091ae8a35 100644 --- a/docs/automatic-releases/github-actions.rst +++ b/docs/automatic-releases/github-actions.rst @@ -61,12 +61,13 @@ fashion. .. warning:: The ``GITHUB_TOKEN`` secret is automatically configured by GitHub, with the - same permissions as the user who triggered the workflow run. This can - sometimes cause a problem if your default branch is protected, since only - administrators will be able to push to it without creating a pull request. + same permissions as the user who triggered the workflow run. This causes + a problem if your default branch is protected. - You can work around this by a user with the necessary permissions creating a - Personal Access Token, and storing that in a different secret. + You can work around this by storing an administrator's Personal Access Token + as a separate secret and using that instead of ``GITHUB_TOKEN``. In this + case, you will also need to pass the new token to ``actions/checkout`` (as + the ``token`` input) in order to gain push access. Multiple Projects -----------------