From 06d5d1a157ffda7207bda1b2c8410b4c63334f11 Mon Sep 17 00:00:00 2001 From: Pierre Sassoulas Date: Thu, 24 Nov 2022 19:51:54 +0100 Subject: [PATCH] Add ``content: write`` rights for backporting job (#7826) * Do not run primers tests on backporting branches * Add content: write rights for backporting job We need it to push to the backporting branch after cherry-picking See https://github.com/PyCQA/pylint/pull/7810\#issuecomment-1324742960 * [github actions] Add a version comment so the tag is clearer Co-authored-by: Marc Mueller <30130371+cdce8p@users.noreply.github.com> --- .github/workflows/backport.yml | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/.github/workflows/backport.yml b/.github/workflows/backport.yml index d2768fd250..4c2639b503 100644 --- a/.github/workflows/backport.yml +++ b/.github/workflows/backport.yml @@ -7,6 +7,7 @@ on: permissions: pull-requests: write + contents: write jobs: backport: @@ -23,6 +24,6 @@ jobs: ) ) steps: - - uses: tibdex/backport@2e217641d82d02ba0603f46b1aeedefb258890ac + - uses: tibdex/backport@2e217641d82d02ba0603f46b1aeedefb258890ac # v2.0.3 with: github_token: ${{ secrets.GITHUB_TOKEN }}