Skip to content

Commit f3a8cc1

Browse files
Set more specific GitHub token permissions on workflows. (#854)
1 parent 7b721e3 commit f3a8cc1

File tree

7 files changed

+29
-0
lines changed

7 files changed

+29
-0
lines changed

.github/workflows/changelog.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,8 @@
11
name: "Ensure labels"
2+
3+
permissions:
4+
pull-requests: read
5+
26
on: # yamllint disable-line rule:truthy
37
pull_request:
48
types:

.github/workflows/codeql-analysis.yml

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: "CodeQL"
22

3+
permissions:
4+
contents: read
5+
checks: write
6+
37
on:
48
push:
59
branches: [ master ]

.github/workflows/labeler.yml

+5
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,9 @@
11
name: "Pull Request Labeler"
2+
3+
permissions:
4+
contents: read
5+
pull-requests: write
6+
27
on:
38
- pull_request
49

.github/workflows/release.yaml

+4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
name: Build
22

3+
permissions:
4+
contents: write
5+
pull-requests: write
6+
37
on:
48
pull_request:
59
release:

.github/workflows/stale.yml

+6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,12 @@
11
# Configuration for https://github.com/actions/stale
22

33
name: "Stale issues and pull requests"
4+
5+
permissions:
6+
contents: write
7+
issues: write
8+
pull-requests: write
9+
410
on:
511
schedule:
612
- cron: "0 5 * * *"

.github/workflows/test.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: test
22

3+
permissions:
4+
contents: read
5+
36
on:
47
push:
58
branches:

.github/workflows/test_integration.yml

+3
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,8 @@
11
name: Run Integration Tests
22

3+
permissions:
4+
contents: read
5+
36
on: # yamllint disable-line rule:truthy
47
pull_request:
58
types:

0 commit comments

Comments
 (0)