Skip to content

Commit 9cb26e0

Browse files
committed
Set explicit permissions for GitHub Actions workflows
This change was made by an automated process to ensure all GitHub Actions workflows have explicitly defined permissions as per best practices.
1 parent 0eb96eb commit 9cb26e0

File tree

6 files changed

+21
-2
lines changed

6 files changed

+21
-2
lines changed

.github/workflows/build-binaries.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
- main
66
- "releases/*"
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
# Compile the binaries and upload artifacts
1013
compile-binaries:

.github/workflows/ci.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
- main
77
- "releases/*"
88

9+
permissions:
10+
contents: read
11+
912
env:
1013
COLUMNS: 120
1114

.github/workflows/nightly-throughput-stress.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,9 @@ on:
2525
default: 360
2626
type: number
2727

28+
permissions:
29+
contents: read
30+
2831
env:
2932
# Workflow configuration
3033
TEST_DURATION: ${{ inputs.duration || vars.NIGHTLY_TEST_DURATION || '5h' }}
@@ -170,4 +173,4 @@ jobs:
170173
]
171174
}
172175
env:
173-
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_SDK_ALERTS_WEBHOOK }}
176+
SLACK_WEBHOOK_URL: ${{ secrets.SLACK_SDK_ALERTS_WEBHOOK }}

.github/workflows/nightly.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
# (12 AM PST)
66
- cron: "00 07 * * *"
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
nightly:
1013
uses: ./.github/workflows/run-bench.yml

.github/workflows/omes.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,10 @@ on:
55
- main
66
- "releases/*"
77

8+
permissions:
9+
contents: read
10+
packages: write
11+
812
jobs:
913
omes-image-build:
1014
uses: temporalio/omes/.github/workflows/docker-images.yml@main

.github/workflows/run-bench.yml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ on:
1818
- "--sandbox"
1919
- "--no-sandbox"
2020

21+
permissions:
22+
contents: read
23+
2124
jobs:
2225
run-bench:
2326
strategy:
@@ -68,4 +71,4 @@ jobs:
6871
- run: poe run-bench --workflow-count 10000 --max-cached-workflows 10000 --max-concurrent 10000 ${{ inputs.sandbox-arg }}
6972

7073
- run: poe run-bench --workflow-count 10000 --max-cached-workflows 1000 --max-concurrent 1000 ${{ inputs.sandbox-arg }}
71-
- run: poe run-bench --workflow-count 10000 --max-cached-workflows 1000 --max-concurrent 1000 ${{ inputs.sandbox-arg }}
74+
- run: poe run-bench --workflow-count 10000 --max-cached-workflows 1000 --max-concurrent 1000 ${{ inputs.sandbox-arg }}

0 commit comments

Comments
 (0)