]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.14] Add `permissions: {}` to all reusable workflows (#148114) (#148115)
authorEzio Melotti <ezio.melotti@gmail.com>
Sat, 4 Apr 2026 23:46:39 +0000 (07:46 +0800)
committerGitHub <noreply@github.com>
Sat, 4 Apr 2026 23:46:39 +0000 (01:46 +0200)
Add `permissions: {}` to all reusable workflows (#148114)

Add permissions: {} to all reusable workflows

(cherry picked from commit 1f36a510a2a16e8ff15572f44090c7db43bb7935)

.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 ecb5000ee6bb8ce969b0b2bef07d85e2ce39cc2b..f06b193d3715fba4676d9ea2f94809e1d242560d 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 bee44e8df276639684bf9de7344feb02ba8652be..e1c35021432ad0127755ea07a88d56c58df5c723 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 3dd03e1ba0f140f47d59f0b0e1e6fb2f6ea66185..a1782302ab55be3a9d60fe96be35d886972fc5df 100644 (file)
@@ -12,6 +12,8 @@ on:
         required: true
         type: string
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index ec4c51064a2c699d34633273c40ed9a232b328ba..dbc9a995c04d860d0dd0ef8a204d2e068bb52b1d 100644 (file)
@@ -12,6 +12,8 @@ on:
         type: boolean
         default: false
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index 5784da6948994647e7d5faddf87fec2e8e549ad8..36e12b63c1e2b0687bc095476f720a73e8ad438e 100644 (file)
@@ -18,6 +18,8 @@ on:
          required: true
          type: string
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index c32710a411fdd47d44e5718f50727a573295b52e..1c8dad5546badeac12eaa737fdeac221f548f84f 100644 (file)
@@ -3,6 +3,8 @@ name: Reusable WASI
 on:
   workflow_call:
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index 420c9cd909a5e99c8b0d6a3ad39870f39fba61a0..5513e5025c6446ce2ccf8850af13ea2f343f1c1f 100644 (file)
@@ -8,8 +8,7 @@ on:
         required: true
         type: string
 
-permissions:
-  contents: read
+permissions: {}
 
 env:
   FORCE_COLOR: 1
index 7a88562239b6c58538304c49dfd23129f1bfa45d..df54583d623c31b38b8f11f0306f7c76d4805b10 100644 (file)
@@ -13,6 +13,8 @@ on:
         type: boolean
         default: false
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
   IncludeUwp: >-