]> git.ipfire.org Git - thirdparty/Python/cpython.git/commitdiff
[3.10] gh-145098: Add `permissions: {}` to all workflows (GH-148126) (#148139)
authorHugo van Kemenade <1324225+hugovk@users.noreply.github.com>
Sun, 5 Apr 2026 22:12:40 +0000 (01:12 +0300)
committerGitHub <noreply@github.com>
Sun, 5 Apr 2026 22:12:40 +0000 (01:12 +0300)
* [3.10] gh-145098: Use `macos-15-intel` instead of unstable `macos-26-intel` in `{jit,tail-call}.yml` (GH-148126)
(cherry picked from commit bce96a181350f348560fe0623361f39a6d5c6361)

Co-authored-by: Stan Ulbrych <stan@python.org>
Co-authored-by: Hugo van Kemenade <1324225+hugovk@users.noreply.github.com>
* Add 'permissions: {}' to all workflows

---------

Co-authored-by: Stan Ulbrych <stan@python.org>
.github/workflows/build.yml
.github/workflows/stale.yml
.github/workflows/verify-ensurepip-wheels.yml
.github/workflows/verify-expat.yml

index 7cbd43da6fc94a2491210185a87a238ebb6974f5..8a1d371f2f9048cb8ec78e1bfe4e9d7f47fcdd41 100644 (file)
@@ -11,8 +11,7 @@ on:
     - 'main'
     - '3.*'
 
-permissions:
-  contents: read
+permissions: {}
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
index 5bbb6f0cb414ee2f110e0d0a6668bdc0fc0876be..8949defda4d15c319cb209aa6b595a0e01bbf798 100644 (file)
@@ -4,13 +4,15 @@ on:
   schedule:
   - cron: "0 0 * * *"
 
-permissions:
-  pull-requests: write
+permissions: {}
 
 jobs:
   stale:
-
+    if: github.repository_owner == 'python'
     runs-on: ubuntu-latest
+    permissions:
+      pull-requests: write
+    timeout-minutes: 10
 
     steps:
     - name: "Check PRs"
index fe27c4f09319ec40e324a9f49f3c98c9f181ecae..b18fc92a0499d1abd00910bf059f4808f7c0a7f0 100644 (file)
@@ -13,8 +13,7 @@ on:
       - '.github/workflows/verify-ensurepip-wheels.yml'
       - 'Tools/scripts/verify_ensurepip_wheels.py'
 
-permissions:
-  contents: read
+permissions: {}
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
index 472a11db2da5fbf9dd3a6822bc2825c0f3c3a096..e193dfa4603e8accc554dc3b195c860835ca65ae 100644 (file)
@@ -11,8 +11,7 @@ on:
       - 'Modules/expat/**'
       - '.github/workflows/verify-expat.yml'
 
-permissions:
-  contents: read
+permissions: {}
 
 concurrency:
   group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}