From fee01c06f3bb9f8d55dd3d9590c8b273c72e8fd1 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/auto_assign.yml | 6 ++++++ .github/workflows/pr-handling.yaml | 6 ++++-- 2 files changed, 10 insertions(+), 2 deletions(-) create mode 100644 .github/auto_assign.yml diff --git a/.github/auto_assign.yml b/.github/auto_assign.yml new file mode 100644 index 00000000000..dd24c0892f9 --- /dev/null +++ b/.github/auto_assign.yml @@ -0,0 +1,6 @@ + +addReviewers: false + +# Set to true to add assignees to pull requests +addAssignees: author + diff --git a/.github/workflows/pr-handling.yaml b/.github/workflows/pr-handling.yaml index fbeab3d70e9..bea1a6c41c0 100644 --- a/.github/workflows/pr-handling.yaml +++ b/.github/workflows/pr-handling.yaml @@ -15,13 +15,15 @@ name: Assign PR to author and reviewers types: [ opened, reopened, ready_for_review ] jobs: + assign-pr: name: Assign PR to author permissions: - contents: write + contents: read # for kentaro-m/auto-assign-action to fetch config file + pull-requests: write # for kentaro-m/auto-assign-action to assign PR reviewers runs-on: ubuntu-latest steps: - - uses: toshimaru/auto-author-assign@v2.1.0 + - uses: kentaro-m/auto-assign-action@v1.2.6 ask-review: name: Run pull-review