Skip to content

Commit 2919131

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 Signed-off-by: Hanwen <[email protected]>
1 parent e92d16f commit 2919131

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
@@ -20,6 +20,9 @@ on:
2020

2121
jobs:
2222
create-pull-requests:
23+
permissions:
24+
contents: write
25+
pull-requests: write
2326
runs-on: ubuntu-latest
2427
steps:
2528
- uses: actions/checkout@v2

0 commit comments

Comments
 (0)