Skip to content

Commit

Permalink
ci(assign): define permissions for auto assign workflow
Browse files Browse the repository at this point in the history
Explicitely stating required permissions is considered best practice.
This case was detected by Poutine, see
https://github.com/boostsecurityio/poutine/blob/main/docs/content/en/rules/default_permissions_on_risky_events.md.

Signed-off-by: Florian Greinacher <[email protected]>
  • Loading branch information
fgreinacher committed May 3, 2024
1 parent 7328ad3 commit f0dbfee
Showing 1 changed file with 5 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .github/workflows/assign.yml
Original file line number Diff line number Diff line change
Expand Up @@ -15,8 +15,13 @@ on:
pull_request:
types: [opened, ready_for_review]

permissions: {}

jobs:
add-reviews:
runs-on: ubuntu-latest
permissions:
contents: read
pull-requests: write
steps:
- uses: kentaro-m/[email protected]

0 comments on commit f0dbfee

Please sign in to comment.