Skip to content

Commit

Permalink
Adjust PR handling workflow permissions
Browse files Browse the repository at this point in the history
Any key not present in the permissions will be set to none so we
need contents:read even though that is the default.

https://github.blog/changelog/2021-04-20-github-actions-control-permissions-for-github_token/
  • Loading branch information
svenklemm committed Feb 19, 2024
1 parent 57e6750 commit 5854796
Showing 1 changed file with 14 additions and 4 deletions.
18 changes: 14 additions & 4 deletions .github/workflows/pr-handling.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -11,14 +11,24 @@ name: Assign PR to author and reviewers
# committed code should _NOT_ be touched in any case.

"on":
pull_request_target:
types: [ opened, reopened, ready_for_review ]
pull_request:
# pull_request_target:
# types: [ opened, reopened, ready_for_review ]
permissions:
actions: write
checks: write
contents: write
deployments: write
issues: write
packages: write
pull-requests: write
repository-projects: write
security-events: write
statuses: write

jobs:
assign-pr:
name: Assign PR to author
permissions:
contents: write
runs-on: ubuntu-latest
steps:
- uses: toshimaru/auto-author-assign@v2.1.0
Expand Down

0 comments on commit 5854796

Please sign in to comment.