Skip to content

Commit

Permalink
Add permissions to Github workflows to bump version
Browse files Browse the repository at this point in the history
On personal repos, Github workflows have write permission by default. However, on team account repos, Github workflows do not have write permission. Therefore, this commit grant permission to the workflow.

See details of Github workflow permissions https://docs.github.com/en/actions/using-jobs/assigning-permissions-to-jobs
  • Loading branch information
hanwen-pcluste committed Jul 8, 2024
1 parent 0aa8627 commit c446a1f
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/bump_version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ on:

jobs:
create-pull-requests:
permissions:
contents: write
pull-requests: write
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v2
Expand Down

0 comments on commit c446a1f

Please sign in to comment.