Skip to content

Commit 4b830ac

Browse files
committed
add now necessary permissions to github action jobs using labels/issues
1 parent ffa296e commit 4b830ac

File tree

5 files changed

+20
-0
lines changed

5 files changed

+20
-0
lines changed

.github/workflows/audit.yml

+4
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,10 @@ on:
1010
schedule:
1111
- cron: "0 0 * * *"
1212

13+
permissions:
14+
contents: read
15+
issues: write
16+
1317
jobs:
1418
security_audit:
1519
runs-on: ubuntu-latest

.github/workflows/on-pr-review-approve.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ on:
22
pull_request_review:
33
types: [submitted]
44

5+
permissions:
6+
contents: read
7+
pull-requests: write
8+
59
jobs:
610
update-labels:
711
if: github.event.review.state == 'approved'

.github/workflows/on-pr-review-submit.yml

+4
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ on:
22
pull_request_review:
33
types: [submitted]
44

5+
permissions:
6+
contents: read
7+
pull-requests: write
8+
59
jobs:
610
update-labels:
711
if: github.event.review.state == 'changes_requested'

.github/workflows/tag-merged-pr.yml

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
- master
55
types: [closed]
66

7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
711
jobs:
812
update-labels:
913
if: ${{ github.event.pull_request.merged }}

.github/workflows/tag-new-pr.yml

+4
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,10 @@ on:
44
- master
55
types: [opened, reopened, review_requested]
66

7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
711
jobs:
812
update-labels:
913
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)