Skip to content

Commit 5463b45

Browse files
authored
add workflow permissions (#150)
1 parent 7b9fb60 commit 5463b45

File tree

3 files changed

+15
-0
lines changed

3 files changed

+15
-0
lines changed

.github/workflows/pr.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- opened
88
- synchronize
99

10+
permissions:
11+
contents: read
12+
pull-requests: write
13+
1014
jobs:
1115
run-tests:
1216
runs-on: ubuntu-latest

.github/workflows/review-probot-prs.yml

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,13 @@
11
name: Review Probot PRs
2+
23
on:
34
pull_request:
45
types: [opened, reopened]
6+
7+
permissions:
8+
contents: read
9+
pull-requests: write
10+
511
jobs:
612
bot:
713
runs-on: ubuntu-latest

.github/workflows/test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
name: Main Tests
2+
23
on:
34
push:
45
branches:
56
- main
7+
8+
permissions:
9+
contents: read
10+
611
jobs:
712
test:
813
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)