[3.13] Add permissions: {} to all reusable workflows (#148114) (#148116)

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 18:04:33 +08:00 committed by GitHub
parent abea3e2861
commit ce0c2c9fab
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
9 changed files with 16 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

@ -48,6 +48,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

@ -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

@ -9,6 +9,8 @@ on:
type: boolean
default: false
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

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