Skip to content

Commit b96e20c

Browse files
ci: add GitHub token permissions (#92999)
1 parent 7f83592 commit b96e20c

File tree

4 files changed

+13
-1
lines changed

4 files changed

+13
-1
lines changed

.github/workflows/build.yml

+3
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,9 @@ on:
2222
- '3.8'
2323
- '3.7'
2424

25+
permissions:
26+
contents: read
27+
2528
jobs:
2629
check_source:
2730
name: 'Check for source changes'

.github/workflows/build_msi.yml

+3
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ on:
2323
paths:
2424
- 'Tools/msi/**'
2525

26+
permissions:
27+
contents: read
28+
2629
jobs:
2730
build_win32:
2831
name: 'Windows (x86) Installer'

.github/workflows/doc.yml

+3
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ on:
2424
- 'Doc/**'
2525
- 'Misc/**'
2626

27+
permissions:
28+
contents: read
29+
2730
jobs:
2831
build_doc:
2932
name: 'Docs'

.github/workflows/new-bugs-announce-notifier.yml

+4-1
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
types:
66
- opened
77

8+
permissions:
9+
issues: read
10+
811
jobs:
912
notify-new-bugs-announce:
1013
runs-on: ubuntu-latest
@@ -39,7 +42,7 @@ jobs:
3942
assignee : issue.data.assignees.map(assignee => { return assignee.login }),
4043
body : issue.data.body
4144
};
42-
45+
4346
const data = {
4447
from: "CPython Issues <[email protected]>",
4548

0 commit comments

Comments
 (0)