]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.11] Add `permissions: {}` to all reusable workflows (#148114) (#148123)
authorEzio Melotti <ezio.melotti@gmail.com>
Sun, 5 Apr 2026 14:41:39 +0000 (22:41 +0800)
committerGitHub <noreply@github.com>
Sun, 5 Apr 2026 14:41:39 +0000 (17:41 +0300)
.github/workflows/reusable-docs.yml
.github/workflows/reusable-macos.yml
.github/workflows/reusable-ubuntu.yml
.github/workflows/reusable-windows.yml

index e99cc1fa5f217dfb0a1ac6bcbc6dde5ee7a82f89..71ba1d97a563704c2a28bbbba2c208062e778155 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 c4cbe180430f165236160355fee7428e12aed865..d3e9defd1109aab0b59cd8da1be676e0d0bdd80d 100644 (file)
@@ -9,6 +9,8 @@ on:
         type: boolean
         default: false
 
+permissions: {}
+
 jobs:
   build_macos:
     name: 'build and test'
index bc62521b6b914bcedbb80da41cbf24a7aacc871d..c836ff59b060744cec294cc687570ff10b0964b6 100644 (file)
@@ -8,6 +8,8 @@ on:
         required: true
         type: string
 
+permissions: {}
+
 env:
   FORCE_COLOR: 1
 
index 851f501dbf42c487a9ce359a75664d5796939d51..fad82009fb5166684005f32d76085cdfe602ab19 100644 (file)
@@ -6,6 +6,8 @@ on:
         type: boolean
         default: false
 
+permissions: {}
+
 jobs:
   build_win32:
     name: 'build and test (x86)'