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 0e123f4
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions .github/workflows/pr-handling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,17 +11,18 @@ name: Assign PR to author and reviewers
# committed code should _NOT_ be touched in any case.

"on":
pull_request:
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
Expand Down

0 comments on commit 0e123f4

Please sign in to comment.