Skip to content

Commit f45c746

Browse files
authored
security: add permissions block to workflows (#3531)
1 parent c5ed2e1 commit f45c746

File tree

4 files changed

+16
-0
lines changed

4 files changed

+16
-0
lines changed

.github/workflows/addToProject.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ on:
33
issues:
44
types:
55
- opened, milestoned
6+
permissions:
7+
contents: read
8+
69
jobs:
710
add_to_project:
811
if: github.event.issue && github.event.issue.milestone

.github/workflows/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,11 @@ on:
55
pull_request_target:
66
types: [opened]
77

8+
permissions:
9+
contents: read
10+
issues: write
11+
pull-requests: write
12+
813
jobs:
914
triage:
1015
runs-on: ubuntu-latest

.github/workflows/snapshot.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,9 @@ on:
1212
default: false
1313
type: boolean
1414

15+
permissions:
16+
contents: read
17+
1518
jobs:
1619
deploy:
1720
name: Deploy

.github/workflows/test-reporter.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,11 @@ on:
88
types:
99
- completed
1010

11+
permissions:
12+
contents: read
13+
actions: read
14+
checks: write
15+
1116
jobs:
1217
report:
1318
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)