Skip to content

Commit 24e899c

Browse files
authored
[3.12] Add permissions: {} to all reusable workflows (#148114) (#148122)
Add `permissions: {}` to all reusable workflows (#148114) Add permissions: {} to all reusable workflows (cherry picked from commit 1f36a51)
1 parent cc02351 commit 24e899c

File tree

6 files changed

+11
-2
lines changed

6 files changed

+11
-2
lines changed

.github/workflows/reusable-context.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,8 @@ on: # yamllint disable-line rule:truthy
3333
description: Whether to run the CIFuzz job
3434
value: ${{ jobs.compute-changes.outputs.run-ci-fuzz }} # bool
3535

36+
permissions: {}
37+
3638
jobs:
3739
compute-changes:
3840
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-macos.yml

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

18+
permissions: {}
19+
1820
env:
1921
FORCE_COLOR: 1
2022

.github/workflows/reusable-tsan.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
@@ -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-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)