ci: add GitHub token permissions (#92999)

This commit is contained in:
Varun Sharma 2022-05-21 00:55:21 -07:00 committed by GitHub
parent 7f835923c1
commit b96e20c1d9
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 13 additions and 1 deletions

View File

@ -22,6 +22,9 @@ on:
- '3.8'
- '3.7'
permissions:
contents: read
jobs:
check_source:
name: 'Check for source changes'

View File

@ -23,6 +23,9 @@ on:
paths:
- 'Tools/msi/**'
permissions:
contents: read
jobs:
build_win32:
name: 'Windows (x86) Installer'

View File

@ -24,6 +24,9 @@ on:
- 'Doc/**'
- 'Misc/**'
permissions:
contents: read
jobs:
build_doc:
name: 'Docs'

View File

@ -5,6 +5,9 @@ on:
types:
- opened
permissions:
issues: read
jobs:
notify-new-bugs-announce:
runs-on: ubuntu-latest
@ -39,7 +42,7 @@ jobs:
assignee : issue.data.assignees.map(assignee => { return assignee.login }),
body : issue.data.body
};
const data = {
from: "CPython Issues <github@mg.python.org>",
to: "new-bugs-announce@python.org",