From 0401ef1897ba7030fd4ba7e57e00bed79e03e2dd Mon Sep 17 00:00:00 2001 From: Johannes Kastl Date: Fri, 7 Aug 2026 08:38:59 +0200 Subject: [PATCH] README.md: Github repository-level permissions for Actions to create pull requests fix #1151 Signed-off-by: Johannes Kastl --- README.md | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/README.md b/README.md index 39e79cb6..9a4fe824 100644 --- a/README.md +++ b/README.md @@ -40,6 +40,10 @@ on: # Run once a day - cron: '0 0 * * *' +# Please note that you need to allow Github Action tokens to +# create pull requests in the repository settings, too: +# Go to the Repository Settings → "Actions" → "General" → "Workflow permissions" +# and enable "Allow GitHub Actions to create and approve pull requests" permissions: contents: write pull-requests: write @@ -65,6 +69,13 @@ jobs: UPDATECLI_GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} ``` +Please check whether you need to allow Github Action tokens to create pull +requests in the repository settings in addition to granting write permissions in +the workflow. This is [required by GitHub in new repositories](https://docs.github.com/en/repositories/managing-your-repositorys-settings-and-features/enabling-features-for-your-repository/managing-github-actions-settings-for-a-repository#preventing-github-actions-from-creating-or-approving-pull-requests). + +Go to the Repository Settings → "Actions" → "General" → "Workflow permissions" +and enable "Allow GitHub Actions to create and approve pull requests" + WARNING: Dont enable --debug mode in Github Action as it may leak information. ## Deprecation