]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
Add `permissions: {}` to all reusable workflows (#148114)
authorEzio Melotti <ezio.melotti@gmail.com>
Sat, 4 Apr 2026 22:31:54 +0000 (06:31 +0800)
committerGitHub <noreply@github.com>
Sat, 4 Apr 2026 22:31:54 +0000 (00:31 +0200)
Add permissions: {} to all reusable workflows

12 files changed:
.github/workflows/reusable-check-c-api-docs.yml
.github/workflows/reusable-check-html-ids.yml
.github/workflows/reusable-cifuzz.yml
.github/workflows/reusable-context.yml
.github/workflows/reusable-docs.yml
.github/workflows/reusable-emscripten.yml
.github/workflows/reusable-macos.yml
.github/workflows/reusable-san.yml
.github/workflows/reusable-ubuntu.yml
.github/workflows/reusable-wasi.yml
.github/workflows/reusable-windows-msi.yml
.github/workflows/reusable-windows.yml

index 49e5ef7f768b79958938b2e2a63b2908a3ff4530..5fae57a1dbda36279b08d2f0c589e299166b2d34 100644 (file)
@@ -3,8 +3,7 @@ name: Reusable C API Docs Check
 on:
   workflow_call:
 
-permissions:
-  contents: read
+permissions: {}
 
 env:
   FORCE_COLOR: 1
index 4f827c55cacd06713b684e1e07705b319bf8cb73..03ed714ca585fe9efa45a0ba8c33133e4c71f18d 100644 (file)
@@ -3,8 +3,7 @@ name: Reusable check HTML IDs
 on:
   workflow_call:
 
-permissions:
-  contents: read
+permissions: {}
 
 env:
   FORCE_COLOR: 1
index 339fca7919c27e3921649c907d14cb255e9c2462..093b2c859eff7b40451bdb6fed3fd54c89982ac3 100644 (file)
@@ -13,6 +13,8 @@ on:
         required: true
         type: string
 
+permissions: {}
+
 jobs:
   cifuzz:
     name: ${{ inputs.oss-fuzz-project-name }} (${{ inputs.sanitizer }})
index 0f0ca3475b320eca7bb6ee6b321eb25eb7e80387..cc9841ebf32f27d3f876c0edf02d8f8fe4bdcc96 100644 (file)
@@ -54,6 +54,8 @@ on:  # yamllint disable-line rule:truthy
         description: Whether to run the Windows tests
         value: ${{ jobs.compute-changes.outputs.run-windows-tests }}  # bool
 
+permissions: {}
+
 jobs:
   compute-changes:
     name: Create context from changed files
index 0453b6ab5550480f68a4b143ef710830366f9d83..3d534feb2ed3ea36a191c830ce598d205866c6c1 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 ce3e65f11a3282af4fd002e2ca26eaf7b5df0a2d..300731deb78959e139a03f8725ea06511c5e2f55 100644 (file)
@@ -3,6 +3,8 @@ name: Reusable Emscripten
 on:
   workflow_call:
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index 785dcc77f542273f9a679308e4a71a37668a19c3..a372d5715290db0d0a79c2b8bc8b6c32c4f5a26e 100644 (file)
@@ -12,6 +12,8 @@ on:
         required: true
         type: string
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index 4e2891ab9b7759b0afa6e3d3f8c9e9b884f387b2..33cfd578d6819a0f25404a2cc63f8c6a2ed91458 100644 (file)
@@ -12,6 +12,8 @@ on:
         type: boolean
         default: false
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index 87274a7b8a38482a678695dd7bf8f6051c3bf4ad..b2ab525c976330ca04d72f0316c227a48d2c37a1 100644 (file)
@@ -23,6 +23,8 @@ on:
          type: string
          default: ''
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index 9bff508bd6664ebb3c3c0f77adc80dc3b933ee60..83f9d2399ce1006e89cb628c1c006096b7b1e88a 100644 (file)
@@ -3,6 +3,8 @@ name: Reusable WASI
 on:
   workflow_call:
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index a74724323ec15f816b34cd85c7d30901ca8f2fc8..7c724f184f3ef668360a9696b8e4469f661e2054 100644 (file)
@@ -8,8 +8,7 @@ on:
         required: true
         type: string
 
-permissions:
-  contents: read
+permissions: {}
 
 env:
   FORCE_COLOR: 1
index 1c399689cde5b049dcab1ec26585e30a21fbeba3..2cfe338a6525e60adfc0c7d8e1ec8860ac2a1cf4 100644 (file)
@@ -17,6 +17,8 @@ on:
         required: true
         type: string
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
   IncludeUwp: >-