Skip to content

Commit 80f0bc1

Browse files
authored
[3.10] Default GHA permissions to contents: read (GH-148346) (#148391)
(cherry picked from commit 9c9df8a)
1 parent af856a7 commit 80f0bc1

File tree

4 files changed

+8
-4
lines changed

4 files changed

+8
-4
lines changed

.github/workflows/build.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ on:
1111
- 'main'
1212
- '3.*'
1313

14-
permissions: {}
14+
permissions:
15+
contents: read
1516

1617
concurrency:
1718
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

.github/workflows/stale.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,8 @@ on:
44
schedule:
55
- cron: "0 0 * * *"
66

7-
permissions: {}
7+
permissions:
8+
contents: read
89

910
jobs:
1011
stale:

.github/workflows/verify-ensurepip-wheels.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ on:
1313
- '.github/workflows/verify-ensurepip-wheels.yml'
1414
- 'Tools/scripts/verify_ensurepip_wheels.py'
1515

16-
permissions: {}
16+
permissions:
17+
contents: read
1718

1819
concurrency:
1920
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

.github/workflows/verify-expat.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ on:
1111
- 'Modules/expat/**'
1212
- '.github/workflows/verify-expat.yml'
1313

14-
permissions: {}
14+
permissions:
15+
contents: read
1516

1617
concurrency:
1718
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

0 commit comments

Comments
 (0)