Skip to content

Commit

Permalink
docs(README): add permissions to examples
Browse files Browse the repository at this point in the history
The action requires specific permissions for the GITHUB_TOKEN. Simply
adding them to the examples should be clear enough for most users.
  • Loading branch information
korthout committed Dec 24, 2021
1 parent 791c35e commit 8fdd495
Showing 1 changed file with 6 additions and 0 deletions.
6 changes: 6 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -42,6 +42,9 @@ jobs:
build:
name: Create backport PRs
runs-on: ubuntu-latest
permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests
# Don't run on closed unmerged pull requests
if: github.event.pull_request.merged
steps:
Expand Down Expand Up @@ -91,6 +94,9 @@ jobs:
build:
name: Create backport PRs
runs-on: ubuntu-latest
permissions:
contents: write # so it can comment
pull-requests: write # so it can create pull requests
# Only run when pull request is merged
# or when a comment containing `/backport` is created
if: >
Expand Down

0 comments on commit 8fdd495

Please sign in to comment.