Skip to content

Commit 2eadfe9

Browse files
authored
Merge pull request #118 from ahoppen/auto-merge-write
Allow write permissions in workflow that creates auto merge PR
2 parents 0c92fc1 + c3bf3ed commit 2eadfe9

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

.github/workflows/create_automerge_pr.yml

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,11 @@ name: Create automerge PR
2222
# jobs:
2323
# create_merge_pr:
2424
# name: Create PR to merge main into release branch
25-
# uses: swiftlang/github-workflows/.github/workflows/create_autmerge_pr.yml@main
25+
# uses: swiftlang/github-workflows/.github/workflows/create_automerge_pr.yml@main
2626
# if: (github.event_name == 'schedule' && github.repository == 'swiftlang/swift-format') || (github.event_name != 'schedule') # Ensure that we don't run this on a schedule in a fork
27+
# permissions:
28+
# contents: write
29+
# pull-requests: write
2730
# with:
2831
# base_branch: release/6.2
2932

@@ -47,6 +50,9 @@ jobs:
4750
create_merge_pr:
4851
name: Create PR to merge ${{ inputs.head_branch }} into ${{ inputs.base_branch }} branch
4952
runs-on: ubuntu-latest
53+
permissions:
54+
contents: write
55+
pull-requests: write
5056
steps:
5157
- name: Checkout repository
5258
uses: actions/checkout@v4

0 commit comments

Comments
 (0)