]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] Default GHA permissions to `contents: read` (GH-148346) (#148391)
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Sun, 12 Apr 2026 06:39:03 +0000 (09:39 +0300)
committerGitHub <noreply@github.com>
Sun, 12 Apr 2026 06:39:03 +0000 (09:39 +0300)
(cherry picked from commit 9c9df8ac8cbb8f539b3f342d01e40b7a0a57dcbf)

.github/workflows/build.yml
.github/workflows/stale.yml
.github/workflows/verify-ensurepip-wheels.yml
.github/workflows/verify-expat.yml

index 8a1d371f2f9048cb8ec78e1bfe4e9d7f47fcdd41..7cbd43da6fc94a2491210185a87a238ebb6974f5 100644 (file)
@@ -11,7 +11,8 @@ on:
     - 'main'
     - '3.*'
 
-permissions: {}
+permissions:
+  contents: read
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
index 8949defda4d15c319cb209aa6b595a0e01bbf798..93d7fcec8811052ec590c4eb10f939db0342219e 100644 (file)
@@ -4,7 +4,8 @@ on:
   schedule:
   - cron: "0 0 * * *"
 
-permissions: {}
+permissions:
+  contents: read
 
 jobs:
   stale:
index b18fc92a0499d1abd00910bf059f4808f7c0a7f0..fe27c4f09319ec40e324a9f49f3c98c9f181ecae 100644 (file)
@@ -13,7 +13,8 @@ on:
       - '.github/workflows/verify-ensurepip-wheels.yml'
       - 'Tools/scripts/verify_ensurepip_wheels.py'
 
-permissions: {}
+permissions:
+  contents: read
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
index e193dfa4603e8accc554dc3b195c860835ca65ae..472a11db2da5fbf9dd3a6822bc2825c0f3c3a096 100644 (file)
@@ -11,7 +11,8 @@ on:
       - 'Modules/expat/**'
       - '.github/workflows/verify-expat.yml'
 
-permissions: {}
+permissions:
+  contents: read
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}