Skip to content

Commit a3347aa

Browse files
authored
[3.11] Add permissions: {} to all reusable workflows (#148114) (#148123)
1 parent 96fc504 commit a3347aa

File tree

4 files changed

+7
-2
lines changed

4 files changed

+7
-2
lines changed

.github/workflows/reusable-docs.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,7 @@ on:
44
workflow_call:
55
workflow_dispatch:
66

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

109
concurrency:
1110
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

.github/workflows/reusable-macos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ on:
99
type: boolean
1010
default: false
1111

12+
permissions: {}
13+
1214
jobs:
1315
build_macos:
1416
name: 'build and test'

.github/workflows/reusable-ubuntu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,8 @@ on:
88
required: true
99
type: string
1010

11+
permissions: {}
12+
1113
env:
1214
FORCE_COLOR: 1
1315

.github/workflows/reusable-windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
type: boolean
77
default: false
88

9+
permissions: {}
10+
911
jobs:
1012
build_win32:
1113
name: 'build and test (x86)'

0 commit comments

Comments
 (0)