Skip to content

Commit aabf26a

Browse files
authored
add workflow-wide permissions (#582)
1 parent 47e2960 commit aabf26a

File tree

5 files changed

+17
-0
lines changed

5 files changed

+17
-0
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,9 @@ on:
1515
- 'main'
1616
- 'hotfix-*'
1717

18+
permissions:
19+
contents: read
20+
1821
jobs:
1922
build:
2023
name: "Build"

.github/workflows/labeler.yml

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

6+
permissions:
7+
contents: read
8+
69
jobs:
710
triage:
811
permissions:

.github/workflows/labels-verify.yml

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

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

.github/workflows/publish.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,9 @@ on:
99
release:
1010
types: [ published ]
1111

12+
permissions:
13+
contents: read
14+
1215
jobs:
1316
build:
1417
runs-on: ubuntu-latest

.github/workflows/release.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,9 +19,14 @@ on:
1919
required: false
2020
default: "1"
2121

22+
permissions:
23+
contents: read
24+
2225
jobs:
2326
triage:
2427
runs-on: ubuntu-latest
28+
permissions:
29+
contents: write
2530
steps:
2631
- name: "Check release version"
2732
run: |

0 commit comments

Comments
 (0)