Skip to content

Commit 9826036

Browse files
authored
ci: scope down GitHub Token permissions (#9804)
* ci: scope down permissions for fail-master-prs.yml * ci: scope down permissions for run-bundle-test.yml * ci: scope down permissions for changelog.yml * ci: scope down permissions for update-lockfiles.yml * ci: scope down permissions for run-tests.yml * ci: scope down permissions for closed-issue-message.yml * ci: scope down permissions for stale_community_prs.yml * ci: scope down permissions for run-dep-tests.yml * ci: scope down permissions for doc-pr-cherry-pick.yml
1 parent b35f751 commit 9826036

File tree

9 files changed

+28
-0
lines changed

9 files changed

+28
-0
lines changed

.github/workflows/changelog.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,6 +41,9 @@ on:
4141
link.
4242
required: true
4343

44+
permissions:
45+
contents: write
46+
4447
jobs:
4548
add-changelog:
4649
runs-on: Ubuntu-latest

.github/workflows/closed-issue-message.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,9 @@ name: Closed Issue Message
22
on:
33
issues:
44
types: [closed]
5+
permissions:
6+
issues: write
7+
58
jobs:
69
auto_comment:
710
runs-on: ubuntu-latest

.github/workflows/doc-pr-cherry-pick.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
type: string
99
required: true
1010

11+
permissions:
12+
contents: write
13+
pull-requests: write
14+
1115
jobs:
1216
cherry_pick_and_create_pr:
1317
runs-on: ubuntu-latest

.github/workflows/fail-master-prs.yml

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

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

.github/workflows/run-bundle-test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
pull_request:
99
branches-ignore: [ master ]
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
test-bundle:
1316
runs-on: ${{ matrix.os }}

.github/workflows/run-dep-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
branches-ignore: [ master ]
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013

.github/workflows/run-tests.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
pull_request:
66
branches-ignore: [ master ]
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
build:
1013

.github/workflows/stale_community_prs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
name: 'Check stale community PRs.'
22
on: workflow_dispatch
33

4+
permissions:
5+
pull-requests: write
6+
47
jobs:
58
stale-implementation-stage:
69
runs-on: ubuntu-latest

.github/workflows/update-lockfiles.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020
the generated files.
2121
2222
23+
permissions:
24+
contents: write
25+
2326
jobs:
2427

2528
update-lockfiles:

0 commit comments

Comments
 (0)