[3.11] Default GHA permissions to contents: read (GH-148346) (#148389)

(cherry picked from commit 9c9df8ac8c)
This commit is contained in:
Hugo van Kemenade
2026-04-12 09:38:51 +03:00
committed by GitHub
parent 642865ddf4
commit 776d39f2be
11 changed files with 22 additions and 11 deletions
+2 -1
View File
@@ -11,7 +11,8 @@ on:
- 'main'
- '3.*'
permissions: {}
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}-reusable
+2 -1
View File
@@ -2,7 +2,8 @@ name: Lint
on: [push, pull_request, workflow_dispatch]
permissions: {}
permissions:
contents: read
env:
FORCE_COLOR: 1
@@ -5,7 +5,8 @@ on:
types:
- opened
permissions: {}
permissions:
contents: read
jobs:
notify-new-bugs-announce:
+2 -1
View File
@@ -4,7 +4,8 @@ on:
pull_request:
types: [opened, reopened, labeled, unlabeled, synchronize]
permissions: {}
permissions:
contents: read
jobs:
label:
+2 -1
View File
@@ -4,7 +4,8 @@ on:
workflow_call:
workflow_dispatch:
permissions: {}
permissions:
contents: read
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
+2 -1
View File
@@ -9,7 +9,8 @@ on:
type: boolean
default: false
permissions: {}
permissions:
contents: read
jobs:
build_macos:
+2 -1
View File
@@ -8,7 +8,8 @@ on:
required: true
type: string
permissions: {}
permissions:
contents: read
env:
FORCE_COLOR: 1
+2 -1
View File
@@ -6,7 +6,8 @@ on:
type: boolean
default: false
permissions: {}
permissions:
contents: read
jobs:
build_win32:
+2 -1
View File
@@ -4,7 +4,8 @@ on:
schedule:
- cron: "0 0 * * *"
permissions: {}
permissions:
contents: read
jobs:
stale:
@@ -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 }}
+2 -1
View 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 }}