From 282bb3f0154571e23a3ff92f36d89b51727e4761 Mon Sep 17 00:00:00 2001 From: Sven Klemm Date: Sun, 28 Apr 2024 08:47:35 +0200 Subject: [PATCH] Use dedicated token for pr assignment Since changing the default permissions of the GITHUB_TOKEN this workflow was failing with insufficient permissions. --- .github/workflows/pr-handling.yaml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/.github/workflows/pr-handling.yaml b/.github/workflows/pr-handling.yaml index fbeab3d70e9..5eca3a08a1c 100644 --- a/.github/workflows/pr-handling.yaml +++ b/.github/workflows/pr-handling.yaml @@ -12,16 +12,16 @@ name: Assign PR to author and reviewers "on": pull_request_target: - types: [ opened, reopened, ready_for_review ] + types: [ labeled, unlabeled, opened, reopened, edited, ready_for_review, synchronize ] jobs: assign-pr: name: Assign PR to author - permissions: - contents: write runs-on: ubuntu-latest steps: - uses: toshimaru/auto-author-assign@v2.1.0 + with: + repo-token: ${{ secrets.ORG_AUTOMATION_TOKEN }} ask-review: name: Run pull-review