Skip to content

Commit 54b0704

Browse files
authored
VLN-497: Set explicit permissions for GitHub Actions workflows (#1815)
1 parent 92fa55d commit 54b0704

File tree

8 files changed

+32
-0
lines changed

8 files changed

+32
-0
lines changed

.github/workflows/ci.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
- main
88
- releases/*
99

10+
permissions:
11+
contents: read
12+
actions: write
13+
1014
env:
1115
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1216
# Is it the official main branch, or an official release branches?

.github/workflows/conventions.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,10 @@ name: Conventions
33
on:
44
workflow_call:
55

6+
permissions:
7+
contents: read
8+
actions: read
9+
610
env:
711
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
812

.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ on:
2222
required: false
2323
description: The Vercel token. Required if 'publish_target' is set.
2424

25+
permissions:
26+
contents: read
27+
actions: read
28+
2529
env:
2630
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
2731

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

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

28+
permissions:
29+
contents: read
30+
actions: write
31+
2832
env:
2933
# Workflow configuration
3034
TEST_DURATION: ${{ inputs.duration || vars.NIGHTLY_TEST_DURATION || '5h' }}

.github/workflows/nightly.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@ on:
66
- cron: '00 08 * * *'
77
# (1 AM PST)
88

9+
permissions:
10+
contents: read
11+
actions: write
12+
913
jobs:
1014
nightly:
1115
uses: ./.github/workflows/stress.yml

.github/workflows/omes.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+
packages: write
12+
913
jobs:
1014
omes-image-build:
1115
uses: temporalio/omes/.github/workflows/docker-images.yml@main

.github/workflows/release.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: write
12+
913
env:
1014
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
1115
# Is it the official main branch, or an official release branches?

.github/workflows/stress.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,10 @@ on:
3838
required: true
3939
type: boolean
4040

41+
permissions:
42+
contents: read
43+
actions: write
44+
4145
env:
4246
TEMPORAL_TESTING_LOG_DIR: /tmp/worker-logs
4347
TEMPORAL_TESTING_MEM_LOG_DIR: /tmp/worker-mem-logs

0 commit comments

Comments
 (0)