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 Apr 28, 2024
1 parent a7890e6 commit 94fea3a
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion .github/workflows/pr-handling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ name: Assign PR to author and reviewers

"on":
pull_request_target:
types: [ opened, reopened, ready_for_review ]
types: [ opened, reopened, ready_for_review, synchronize ]

jobs:
assign-pr:
Expand All @@ -22,6 +22,8 @@ jobs:
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
Expand Down

0 comments on commit 94fea3a

Please sign in to comment.