Add permissions: {} to all reusable workflows (#148114)

Add permissions: {} to all reusable workflows
This commit is contained in:
Ezio Melotti
2026-04-05 06:31:54 +08:00
committed by GitHub
parent 4ff8b07a3d
commit 1f36a510a2
12 changed files with 20 additions and 8 deletions
@@ -3,8 +3,7 @@ name: Reusable C API Docs Check
on:
workflow_call:
permissions:
contents: read
permissions: {}
env:
FORCE_COLOR: 1
@@ -3,8 +3,7 @@ name: Reusable check HTML IDs
on:
workflow_call:
permissions:
contents: read
permissions: {}
env:
FORCE_COLOR: 1
+2
View File
@@ -13,6 +13,8 @@ on:
required: true
type: string
permissions: {}
jobs:
cifuzz:
name: ${{ inputs.oss-fuzz-project-name }} (${{ inputs.sanitizer }})
+2
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
+1 -2
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 }}
@@ -3,6 +3,8 @@ name: Reusable Emscripten
on:
workflow_call:
permissions: {}
env:
FORCE_COLOR: 1
+2
View File
@@ -12,6 +12,8 @@ on:
required: true
type: string
permissions: {}
env:
FORCE_COLOR: 1
+2
View File
@@ -12,6 +12,8 @@ on:
type: boolean
default: false
permissions: {}
env:
FORCE_COLOR: 1
+2
View File
@@ -23,6 +23,8 @@ on:
type: string
default: ''
permissions: {}
env:
FORCE_COLOR: 1
+2
View File
@@ -3,6 +3,8 @@ name: Reusable WASI
on:
workflow_call:
permissions: {}
env:
FORCE_COLOR: 1
+1 -2
View File
@@ -8,8 +8,7 @@ on:
required: true
type: string
permissions:
contents: read
permissions: {}
env:
FORCE_COLOR: 1
+2
View File
@@ -17,6 +17,8 @@ on:
required: true
type: string
permissions: {}
env:
FORCE_COLOR: 1
IncludeUwp: >-