Skip to content

Commit f1d9604

Browse files
ashovlinAdnaneKhan
andauthored
[v2] ci: scope down GitHub Token permissions (#9965)
* 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 * ci: scope down permissions for source-dist-tests.yml --------- Co-authored-by: Adnan Khan <AdnaneKhan@users.noreply.github.com>
1 parent 12aea15 commit f1d9604

8 files changed

Lines changed: 24 additions & 0 deletions

.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/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-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
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches-ignore: [ master ]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
1114

.github/workflows/source-dist-tests.yml

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

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
build:
1114

.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)