From: Ezio Melotti Date: Sun, 5 Apr 2026 15:00:10 +0000 (+0800) Subject: [3.12] Add `permissions: {}` to all reusable workflows (#148114) (#148122) X-Git-Url: http://git.ipfire.org/gitweb.cgi?a=commitdiff_plain;h=24e899c17decd85b5687fe22fbe8b55da91f6d49;p=thirdparty%2FPython%2Fcpython.git [3.12] Add `permissions: {}` to all reusable workflows (#148114) (#148122) Add `permissions: {}` to all reusable workflows (#148114) Add permissions: {} to all reusable workflows (cherry picked from commit 1f36a510a2a16e8ff15572f44090c7db43bb7935) --- diff --git a/.github/workflows/reusable-context.yml b/.github/workflows/reusable-context.yml index 426bec2f9398..b433ac8de594 100644 --- a/.github/workflows/reusable-context.yml +++ b/.github/workflows/reusable-context.yml @@ -33,6 +33,8 @@ on: # yamllint disable-line rule:truthy description: Whether to run the CIFuzz job value: ${{ jobs.compute-changes.outputs.run-ci-fuzz }} # bool +permissions: {} + jobs: compute-changes: name: Create context from changed files diff --git a/.github/workflows/reusable-docs.yml b/.github/workflows/reusable-docs.yml index 89d5f18c5573..69c9b5422ade 100644 --- a/.github/workflows/reusable-docs.yml +++ b/.github/workflows/reusable-docs.yml @@ -4,8 +4,7 @@ on: workflow_call: workflow_dispatch: -permissions: - contents: read +permissions: {} concurrency: group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }} diff --git a/.github/workflows/reusable-macos.yml b/.github/workflows/reusable-macos.yml index 846a1ec891a3..6cdfd36b2f1d 100644 --- a/.github/workflows/reusable-macos.yml +++ b/.github/workflows/reusable-macos.yml @@ -15,6 +15,8 @@ on: required: true type: string +permissions: {} + env: FORCE_COLOR: 1 diff --git a/.github/workflows/reusable-tsan.yml b/.github/workflows/reusable-tsan.yml index 43e347d306c8..0a3a6f1825ef 100644 --- a/.github/workflows/reusable-tsan.yml +++ b/.github/workflows/reusable-tsan.yml @@ -12,6 +12,8 @@ on: type: boolean default: false +permissions: {} + env: FORCE_COLOR: 1 diff --git a/.github/workflows/reusable-ubuntu.yml b/.github/workflows/reusable-ubuntu.yml index bb1b8024d26f..5b4aa2c7abcf 100644 --- a/.github/workflows/reusable-ubuntu.yml +++ b/.github/workflows/reusable-ubuntu.yml @@ -12,6 +12,8 @@ on: type: boolean default: false +permissions: {} + env: FORCE_COLOR: 1 diff --git a/.github/workflows/reusable-windows.yml b/.github/workflows/reusable-windows.yml index a3e54703c235..3f2a4d821171 100644 --- a/.github/workflows/reusable-windows.yml +++ b/.github/workflows/reusable-windows.yml @@ -13,6 +13,8 @@ on: type: boolean default: false +permissions: {} + env: FORCE_COLOR: 1 IncludeUwp: >-