Skip to content

Commit 660ac2b

Browse files
authored
VLN-492: Set explicit permissions for GitHub Actions workflows (#1199)
* 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. * Add `actions: read` to use `temporalio/features` Following the same fix done here: temporalio/sdk-dotnet#556 After this was landed: temporalio/features#693
1 parent 5f24792 commit 660ac2b

File tree

6 files changed

+20
-3
lines changed

6 files changed

+20
-3
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: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- main
77
- "releases/*"
88

9+
permissions:
10+
contents: read
11+
actions: read
12+
913
env:
1014
COLUMNS: 120
1115

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

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ on:
2626
type: number
2727

2828
permissions:
29-
contents: read
29+
contents: read
3030

3131
env:
3232
# Workflow configuration
@@ -173,4 +173,4 @@ jobs:
173173
]
174174
}
175175
env:
176-
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)