Skip to content

Commit d024a4d

Browse files
hanwen-clusterhanwen-pcluste
authored andcommitted
Add permissions to Github workflows to bump version
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
1 parent 0aa8627 commit d024a4d

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/bump_version.yml

+3
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,9 @@ on:
1616

1717
jobs:
1818
create-pull-requests:
19+
permissions:
20+
contents: write
21+
pull-requests: write
1922
runs-on: ubuntu-latest
2023
steps:
2124
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)