From 64ce2cba9890b4b8522760090286a756cbefa33f Mon Sep 17 00:00:00 2001 From: Ezio Melotti Date: Mon, 10 Oct 2022 21:46:09 +0200 Subject: [3.10] ci: add GitHub token permissions (GH-92999) (#98161) * ci: add GitHub token permissions (#92999) (cherry picked from commit b96e20c1d9be4e6d5ea3e48c9c97e5ecd02f6055) * [3.10] ci: add GitHub token permissions (GH-92999). (cherry picked from commit b96e20c1d9be4e6d5ea3e48c9c97e5ecd02f6055) Co-authored-by: Varun Sharma Co-authored-by: Varun Sharma --- .github/workflows/build.yml | 3 +++ .github/workflows/build_msi.yml | 3 +++ .github/workflows/doc.yml | 3 +++ 3 files changed, 9 insertions(+) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 1545ae8..c0744ce 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -19,6 +19,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 201098a..04917ff 100644 --- a/.github/workflows/build_msi.yml +++ b/.github/workflows/build_msi.yml @@ -20,6 +20,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 e250158..eb4884a 100644 --- a/.github/workflows/doc.yml +++ b/.github/workflows/doc.yml @@ -20,6 +20,9 @@ on: - 'Doc/**' - 'Misc/**' +permissions: + contents: read + jobs: build_doc: name: 'Docs' -- cgit v0.12