]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.13] Add `permissions: {}` to all reusable workflows (#148114) (#148116)
authorEzio Melotti <ezio.melotti@gmail.com>
Sun, 5 Apr 2026 10:04:33 +0000 (18:04 +0800)
committerGitHub <noreply@github.com>
Sun, 5 Apr 2026 10:04:33 +0000 (12:04 +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-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 79638845bb99aeffeba26ad4f3d400d9a6986d29..6416115b1de0582869576640904ab746afe26a35 100644 (file)
@@ -48,6 +48,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 eb5d2e19bd4b09b180ba5725a624cd9144b6d2a6..dbc6fd3774a5baf3a827c7d85737e96708e076d4 100644 (file)
@@ -12,6 +12,8 @@ on:
         required: true
         type: string
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index 752f27cbe55c009bdfc95565680205c4925865d8..f5e7f48b860b2f1214d296737952fc3d1c7e0a39 100644 (file)
@@ -12,6 +12,8 @@ on:
         type: boolean
         default: false
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index 6335102d85526113331db7d4d0fc0850e8d9250d..3f1abce25c96847cf74c5452fb777d08a52d46da 100644 (file)
@@ -9,6 +9,8 @@ on:
         type: boolean
         default: false
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index 5895c01f7ac3a3d64dbad4eee854c3d7d08d24b4..e9c032f93bbf2d36b1407ca202108af58c50197c 100644 (file)
@@ -3,6 +3,8 @@ name: Reusable WASI
 on:
   workflow_call:
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index e690224f35537b8c724ab3f8eb63a9a417050aef..e836944f465bb3d145231d9bbd422ee24a987870 100644 (file)
@@ -8,8 +8,7 @@ on:
         required: true
         type: string
 
-permissions:
-  contents: read
+permissions: {}
 
 env:
   FORCE_COLOR: 1
index 8bed897bd3de225422fc7502ca3374c0077a58ef..41ba50d8665d809ab6369a37805315b35e6efc05 100644 (file)
@@ -17,6 +17,8 @@ on:
         type: boolean
         default: false
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
   IncludeUwp: >-