]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
ci: add GitHub token permissions (GH-92999)
authorMiss Islington (bot) <31488909+miss-islington@users.noreply.github.com>
Mon, 10 Oct 2022 19:37:37 +0000 (12:37 -0700)
committerGitHub <noreply@github.com>
Mon, 10 Oct 2022 19:37:37 +0000 (12:37 -0700)
(cherry picked from commit b96e20c1d9be4e6d5ea3e48c9c97e5ecd02f6055)

Co-authored-by: Varun Sharma <varunsh@stepsecurity.io>
.github/workflows/build.yml
.github/workflows/build_msi.yml
.github/workflows/doc.yml
.github/workflows/new-bugs-announce-notifier.yml

index bb08b2ff62d51136aa6eaf020f04118849d8ad9b..3576eff6e352ba88a6e769ad8d2ea6556acb3054 100644 (file)
@@ -22,6 +22,9 @@ on:
     - '3.8'
     - '3.7'
 
+permissions:
+  contents: read
+
 jobs:
   check_source:
     name: 'Check for source changes'
index ec18735e9b9fa6e86a83d96ba7fbe625ef07460f..6044ae0f7c29b404f7a2aec5f7591b724022fef4 100644 (file)
@@ -23,6 +23,9 @@ on:
     paths:
     - 'Tools/msi/**'
 
+permissions:
+  contents: read
+
 jobs:
   build_win32:
     name: 'Windows (x86) Installer'
index 73a6a50520e02d81c63eb4bcc2a6000bd87f252b..e06f21671b5a5a7bc38157cfafc7a16064e1a000 100644 (file)
@@ -25,6 +25,9 @@ on:
     - 'Misc/**'
     - '.github/workflows/doc.yml'
 
+permissions:
+  contents: read
+
 jobs:
   build_doc:
     name: 'Docs'
index 8cd834419f00bfcb517889b799510594464b50e1..b2b63472d8342186111da6aa6e44d9f115fe3baa 100644 (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",