Skip to content

Commit

Permalink
Use dedicated token for pr assignment
Browse files Browse the repository at this point in the history
Since changing the default permissions of the GITHUB_TOKEN this
workflow was failing with insufficient permissions.
  • Loading branch information
svenklemm committed Jun 19, 2024
1 parent a7890e6 commit 8a16731
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 2 deletions.
6 changes: 6 additions & 0 deletions .github/auto_assign.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@

addReviewers: false

# Set to true to add assignees to pull requests
addAssignees: author

6 changes: 4 additions & 2 deletions .github/workflows/pr-handling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit 8a16731

Please sign in to comment.