Skip to content

Commit a9b727f

Browse files
committed
Add explicit permissions to workflows after org-level read-only default
Signed-off-by: Sotaro Hikita <bering1814@gmail.com>
1 parent f6973ef commit a9b727f

3 files changed

Lines changed: 7 additions & 0 deletions

File tree

.github/workflows/add-untriaged.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
apply-label:
99
runs-on: ubuntu-latest
10+
permissions:
11+
issues: write
1012
steps:
1113
- uses: actions/github-script@v6
1214
with:

.github/workflows/delete_backport_branch.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,8 @@ on:
77
jobs:
88
delete-branch:
99
runs-on: ubuntu-latest
10+
permissions:
11+
contents: write
1012
if: startsWith(github.event.pull_request.head.ref,'backport/')
1113
steps:
1214
- name: Delete merged branch

.github/workflows/release_drafter.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ jobs:
99
draft-a-release:
1010
name: Draft a release
1111
runs-on: ubuntu-latest
12+
permissions:
13+
contents: write
14+
issues: write
1215
steps:
1316
- name: Checkout code
1417
uses: actions/checkout@v3

0 commit comments

Comments
 (0)