Skip to content

Commit 7f5a1f6

Browse files
authored
Add permissions for branch deletion in workflow
Added permissions to allow branch deletion.
1 parent c75df48 commit 7f5a1f6

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/delete_staging_and_head_branches.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
- "advisories/**"
99
workflow_dispatch:
1010

11+
permissions:
12+
contents: write # Required to delete branches
13+
1114
jobs:
1215
delete-staging-and-head-branches:
1316
if: ${{ !github.event.pull_request.head.repo.fork }}

0 commit comments

Comments
 (0)