From: Varun Sharma Date: Sat, 21 May 2022 07:55:21 +0000 (-0700) Subject: ci: add GitHub token permissions (#92999) X-Git-Tag: v3.12.0a1~1473 X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=b96e20c1d9be4e6d5ea3e48c9c97e5ecd02f6055;p=thirdparty%2FPython%2Fcpython.git ci: add GitHub token permissions (#92999) --- diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index e04633b711f2..d800442ad07e 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -22,6 +22,9 @@ on: - '3.8' - '3.7' +permissions: + contents: read + jobs: check_source: name: 'Check for source changes' diff --git a/.github/workflows/build_msi.yml b/.github/workflows/build_msi.yml index ec18735e9b9f..6044ae0f7c29 100644 --- a/.github/workflows/build_msi.yml +++ b/.github/workflows/build_msi.yml @@ -23,6 +23,9 @@ on: paths: - 'Tools/msi/**' +permissions: + contents: read + jobs: build_win32: name: 'Windows (x86) Installer' diff --git a/.github/workflows/doc.yml b/.github/workflows/doc.yml index 8c4a03489612..9cd251648cde 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -24,6 +24,9 @@ on: - 'Doc/**' - 'Misc/**' +permissions: + contents: read + jobs: build_doc: name: 'Docs' diff --git a/.github/workflows/new-bugs-announce-notifier.yml b/.github/workflows/new-bugs-announce-notifier.yml index 8cd834419f00..b2b63472d834 100644 --- a/.github/workflows/new-bugs-announce-notifier.yml +++ b/.github/workflows/new-bugs-announce-notifier.yml @@ -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 ", to: "new-bugs-announce@python.org",