[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 1f36a510a2)
This commit is contained in:
Ezio Melotti 2026-04-05 07:46:39 +08:00 committed by GitHub
parent 26c57c05d3
commit f74e2ee2d3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
10 changed files with 18 additions and 4 deletions

View file

@ -13,6 +13,8 @@ on:
required: true
type: string
permissions: {}
jobs:
cifuzz:
name: ${{ inputs.oss-fuzz-project-name }} (${{ inputs.sanitizer }})

View file

@ -54,6 +54,8 @@ on: # yamllint disable-line rule:truthy
description: Whether to run the Windows tests
value: ${{ jobs.compute-changes.outputs.run-windows-tests }} # bool
permissions: {}
jobs:
compute-changes:
name: Create context from changed files

View file

@ -4,8 +4,7 @@ on:
workflow_call:
workflow_dispatch:
permissions:
contents: read
permissions: {}
concurrency:
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}

View file

@ -3,6 +3,8 @@ name: Reusable Emscripten
on:
workflow_call:
permissions: {}
env:
FORCE_COLOR: 1

View file

@ -12,6 +12,8 @@ on:
required: true
type: string
permissions: {}
env:
FORCE_COLOR: 1

View file

@ -12,6 +12,8 @@ on:
type: boolean
default: false
permissions: {}
env:
FORCE_COLOR: 1

View file

@ -18,6 +18,8 @@ on:
required: true
type: string
permissions: {}
env:
FORCE_COLOR: 1

View file

@ -3,6 +3,8 @@ name: Reusable WASI
on:
workflow_call:
permissions: {}
env:
FORCE_COLOR: 1

View file

@ -8,8 +8,7 @@ on:
required: true
type: string
permissions:
contents: read
permissions: {}
env:
FORCE_COLOR: 1

View file

@ -13,6 +13,8 @@ on:
type: boolean
default: false
permissions: {}
env:
FORCE_COLOR: 1
IncludeUwp: >-