mirror of
https://github.com/apple/swift-nio
synced 2026-11-30 05:28:44 +00:00
set explicit permissions for GitHub workflows - all remaining workflows (#3396)
See https://github.com/apple/swift-nio/issues/3386 Note: I consistently placed the permissions key at the top (slightly corrected recent PRs). CC @rnro Signed-off-by: Melissa Kilby <mkilby@apple.com>
This commit is contained in:
1 parent
97c3f28ad0
commit
dee7095f8d
15 files changed
+45
-15
No files matched your search
@@ -1,5 +1,8 @@
|
||||
name: Benchmarks
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
@@ -73,9 +76,6 @@ on:
|
||||
description: "Environment variables for Linux jobs as JSON (e.g., '{\"DEBUG\":\"1\",\"LOG_LEVEL\":\"info\"}')."
|
||||
default: "{}"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
construct-matrix:
|
||||
name: Construct Benchmarks matrix
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: CMake build
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Cxx interop
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
@@ -70,9 +73,6 @@ on:
|
||||
description: "Environment variables for Windows jobs as JSON (e.g., '{\"DEBUG\":\"1\",\"LOG_LEVEL\":\"info\"}')."
|
||||
default: "{}"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
construct-matrix:
|
||||
name: Construct Cxx interop matrix
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: macOS tests
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Main
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: PR
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [opened, reopened, synchronize]
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: PR label
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
pull_request:
|
||||
types: [labeled, unlabeled, opened, reopened, synchronize]
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Release builds
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
@@ -102,9 +105,6 @@ on:
|
||||
description: "Environment variables for Windows jobs as JSON (e.g., '{\"DEBUG\":\"1\",\"LOG_LEVEL\":\"info\"}')."
|
||||
default: "{}"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
construct-matrix:
|
||||
name: Construct release build matrix
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Static SDK
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Swift 6 language mode
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Matrix Load
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Matrix
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Matrix
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
@@ -12,9 +15,6 @@ on:
|
||||
description: "The test matrix definition."
|
||||
required: true
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
# We will cancel previously triggered workflow runs
|
||||
concurrency:
|
||||
group: ${{ github.workflow }}-${{ github.ref }}-${{ inputs.name }}
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: Unit tests
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
inputs:
|
||||
@@ -142,9 +145,6 @@ on:
|
||||
description: "Environment variables for Windows jobs as JSON (e.g., '{\"DEBUG\":\"1\",\"LOG_LEVEL\":\"info\"}')."
|
||||
default: "{}"
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
jobs:
|
||||
construct-matrix:
|
||||
name: Construct unit test matrix
|
||||
|
||||
@@ -1,5 +1,8 @@
|
||||
name: WebAssembly SDK
|
||||
|
||||
permissions:
|
||||
contents: read
|
||||
|
||||
on:
|
||||
workflow_call:
|
||||
|
||||
|
||||
Reference in new issue
Block a user