Skip to content

Commit 2fcd283

Browse files
[3.10] gh-145098: Add permissions: {} to all workflows (GH-148126) (#148139)
* [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 bce96a1) 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>
1 parent 5782d6a commit 2fcd283

File tree

4 files changed

+8
-9
lines changed

4 files changed

+8
-9
lines changed

.github/workflows/build.yml

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

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

1716
concurrency:
1817
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

.github/workflows/stale.yml

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,15 @@ on:
44
schedule:
55
- cron: "0 0 * * *"
66

7-
permissions:
8-
pull-requests: write
7+
permissions: {}
98

109
jobs:
1110
stale:
12-
11+
if: github.repository_owner == 'python'
1312
runs-on: ubuntu-latest
13+
permissions:
14+
pull-requests: write
15+
timeout-minutes: 10
1416

1517
steps:
1618
- name: "Check PRs"

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

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

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

1918
concurrency:
2019
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

.github/workflows/verify-expat.yml

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

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

1716
concurrency:
1817
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

0 commit comments

Comments
 (0)