Skip to content

Commit 1f17474

Browse files
authored
[chore] add more top level permissions (open-telemetry#38870)
Signed-off-by: Alex Boten <223565+codeboten@users.noreply.github.com>
1 parent 4d83201 commit 1f17474

File tree

6 files changed

+17
-0
lines changed

6 files changed

+17
-0
lines changed

.github/workflows/changelog.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,8 @@ on:
1111
branches:
1212
- main
1313

14+
permissions: read-all
15+
1416
env:
1517
# Make sure to exit early if cache segment download times out after 2 minutes.
1618
# We limit cache download as a whole to 5 minutes.

.github/workflows/check-codeowners.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ concurrency:
2020
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
2121
cancel-in-progress: true
2222

23+
permissions: read-all
24+
2325
jobs:
2426
check-codeowners:
2527
timeout-minutes: 30

.github/workflows/check-links.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,8 @@ concurrency:
99
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
1010
cancel-in-progress: true
1111

12+
permissions: read-all
13+
1214
jobs:
1315
changedfiles:
1416
name: changed files

.github/workflows/load-tests.yml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ env:
1818
# We limit cache download as a whole to 5 minutes.
1919
SEGMENT_DOWNLOAD_TIMEOUT_MINS: 2
2020

21+
permissions: read-all
22+
2123
jobs:
2224
setup-environment:
2325
timeout-minutes: 30
@@ -122,6 +124,11 @@ jobs:
122124
update-benchmarks:
123125
runs-on: ubuntu-24.04
124126
needs: [loadtest]
127+
permissions:
128+
# deployments permission to deploy GitHub pages website
129+
deployments: write
130+
# contents permission to update benchmark contents in gh-pages branch
131+
contents: write
125132
if: github.event_name != 'pull_request'
126133
steps:
127134
- uses: actions/checkout@11bd71901bbe5b1630ceea73d27597364c9af683 # v4

.github/workflows/scoped-test.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ on:
66
pull_request:
77
types: [opened, synchronize, reopened]
88

9+
permissions: read-all
10+
911
jobs:
1012
changedfiles:
1113
runs-on: ubuntu-latest

.github/workflows/telemetrygen.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,8 @@ concurrency:
2020
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
2121
cancel-in-progress: true
2222

23+
permissions: read-all
24+
2325
jobs:
2426
build-dev:
2527
runs-on: ubuntu-24.04

0 commit comments

Comments
 (0)