Skip to content

Commit 0206bdc

Browse files
epszawdelatrie
andauthored
Add workflow-wide gh actions permissions (#1187)
Co-authored-by: Maksim Stepanov <[email protected]>
1 parent 9f50f7b commit 0206bdc

File tree

4 files changed

+18
-0
lines changed

4 files changed

+18
-0
lines changed

.github/workflows/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,14 @@ name: "Set theme labels"
33
on:
44
- pull_request_target
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
triage:
811
runs-on: ubuntu-latest
12+
permissions:
13+
pull-requests: write
914
steps:
1015
- uses: actions/labeler@v4
1116
with:

.github/workflows/labels-verify.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,14 @@ on:
44
pull_request_target:
55
types: [opened, labeled, unlabeled, synchronize]
66

7+
permissions:
8+
contents: none
9+
710
jobs:
811
triage:
912
runs-on: ubuntu-latest
13+
permissions:
14+
pull-requests: read
1015
steps:
1116
- uses: baev/action-label-verify@main
1217
with:

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,9 @@ on:
44
release:
55
types: [ published ]
66

7+
permissions:
8+
contents: read
9+
710
jobs:
811
build:
912
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,14 @@ on:
1111
description: "The next version in <MAJOR>.<MINOR> format WITHOUT SNAPSHOT SUFFIX"
1212
required: true
1313

14+
permissions:
15+
contents: read
16+
1417
jobs:
1518
triage:
1619
runs-on: ubuntu-latest
20+
permissions:
21+
contents: write
1722
steps:
1823
- name: "Check release version"
1924
run: |

0 commit comments

Comments
 (0)