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 ef20a5a
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/pr-handling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -12,16 +12,16 @@ name: Assign PR to author and reviewers

"on":
pull_request_target:
types: [ opened, reopened, ready_for_review ]
types: [ 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
Expand Down

0 comments on commit ef20a5a

Please sign in to comment.