Skip to content

Commit f74e2ee

Browse files
authored
[3.14] Add permissions: {} to all reusable workflows (#148114) (#148115)
Add `permissions: {}` to all reusable workflows (#148114) Add permissions: {} to all reusable workflows (cherry picked from commit 1f36a51)
1 parent 26c57c0 commit f74e2ee

File tree

10 files changed

+18
-4
lines changed

10 files changed

+18
-4
lines changed

.github/workflows/reusable-cifuzz.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
required: true
1414
type: string
1515

16+
permissions: {}
17+
1618
jobs:
1719
cifuzz:
1820
name: ${{ inputs.oss-fuzz-project-name }} (${{ inputs.sanitizer }})

.github/workflows/reusable-context.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,8 @@ on: # yamllint disable-line rule:truthy
5454
description: Whether to run the Windows tests
5555
value: ${{ jobs.compute-changes.outputs.run-windows-tests }} # bool
5656

57+
permissions: {}
58+
5759
jobs:
5860
compute-changes:
5961
name: Create context from changed files

.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-emscripten.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Reusable Emscripten
33
on:
44
workflow_call:
55

6+
permissions: {}
7+
68
env:
79
FORCE_COLOR: 1
810

.github/workflows/reusable-macos.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
required: true
1313
type: string
1414

15+
permissions: {}
16+
1517
env:
1618
FORCE_COLOR: 1
1719

.github/workflows/reusable-san.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,8 @@ on:
1212
type: boolean
1313
default: false
1414

15+
permissions: {}
16+
1517
env:
1618
FORCE_COLOR: 1
1719

.github/workflows/reusable-ubuntu.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ on:
1818
required: true
1919
type: string
2020

21+
permissions: {}
22+
2123
env:
2224
FORCE_COLOR: 1
2325

.github/workflows/reusable-wasi.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,8 @@ name: Reusable WASI
33
on:
44
workflow_call:
55

6+
permissions: {}
7+
68
env:
79
FORCE_COLOR: 1
810

.github/workflows/reusable-windows-msi.yml

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

11-
permissions:
12-
contents: read
11+
permissions: {}
1312

1413
env:
1514
FORCE_COLOR: 1

.github/workflows/reusable-windows.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,8 @@ on:
1313
type: boolean
1414
default: false
1515

16+
permissions: {}
17+
1618
env:
1719
FORCE_COLOR: 1
1820
IncludeUwp: >-

0 commit comments

Comments
 (0)