Skip to content

Commit ee7b171

Browse files
committed
Add workflows permission to GitHub Actions
The workflows need 'workflows: write' permission to push changes that modify workflow files. This is required when cherry-picking patches that include workflow updates. Fixes error: 'refusing to allow a GitHub App to create or update workflow without workflows permission'
1 parent 75ed47a commit ee7b171

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.github/workflows/rebase-upstream.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ on:
99
permissions:
1010
contents: write
1111
issues: write
12+
workflows: write
1213

1314
jobs:
1415
rebase:

.github/workflows/release-patched-version.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,7 @@ on:
1515

1616
permissions:
1717
contents: write
18+
workflows: write
1819

1920
jobs:
2021
create-patched-release:

0 commit comments

Comments
 (0)