]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.12] Add `permissions: {}` to all reusable workflows (#148114) (#148122)
authorEzio Melotti <ezio.melotti@gmail.com>
Sun, 5 Apr 2026 15:00:10 +0000 (23:00 +0800)
committerGitHub <noreply@github.com>
Sun, 5 Apr 2026 15:00:10 +0000 (17:00 +0200)
Add `permissions: {}` to all reusable workflows (#148114)

Add permissions: {} to all reusable workflows

(cherry picked from commit 1f36a510a2a16e8ff15572f44090c7db43bb7935)

.github/workflows/reusable-context.yml
.github/workflows/reusable-docs.yml
.github/workflows/reusable-macos.yml
.github/workflows/reusable-tsan.yml
.github/workflows/reusable-ubuntu.yml
.github/workflows/reusable-windows.yml

index 426bec2f93982c5848c6b0f8c4abfc46626bec18..b433ac8de594d9e4fa09cb68d82423cc9f038baf 100644 (file)
@@ -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
index 89d5f18c55739054855b9f4f6f842440b3f844b3..69c9b5422adef0e79f0e844abbbb0a9fdba3d05e 100644 (file)
@@ -4,8 +4,7 @@ on:
   workflow_call:
   workflow_dispatch:
 
-permissions:
-  contents: read
+permissions: {}
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
index 846a1ec891a37e5597d6adba625b0fbf522793b5..6cdfd36b2f1d4d712b6231f6d11393839fcf4454 100644 (file)
@@ -15,6 +15,8 @@ on:
         required: true
         type: string
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index 43e347d306c882fb4bc9951dbf05858e82d04dd8..0a3a6f1825ef7541d2a8f3a298d363bbc56a10ff 100644 (file)
@@ -12,6 +12,8 @@ on:
         type: boolean
         default: false
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index bb1b8024d26f1f866ece1b6363a13146524cd573..5b4aa2c7abcfff526096b48d0dcbcdbe601c0ab9 100644 (file)
@@ -12,6 +12,8 @@ on:
         type: boolean
         default: false
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index a3e54703c23596c1626e933938fc12a564213df4..3f2a4d8211713db6355ac5c8ee660e001e11d2d4 100644 (file)
@@ -13,6 +13,8 @@ on:
         type: boolean
         default: false
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
   IncludeUwp: >-