Skip to content

Commit 189ba95

Browse files
Add minimum token permissions for all github workflow files (#870)
Co-authored-by: otelbot <[email protected]>
1 parent ba1d543 commit 189ba95

File tree

4 files changed

+14
-1
lines changed

4 files changed

+14
-1
lines changed

.github/workflows/elixir.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,9 @@ on:
1010
branches:
1111
- "main"
1212

13+
permissions:
14+
contents: read
15+
1316
jobs:
1417
format:
1518
runs-on: ubuntu-24.04

.github/workflows/erlang.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,10 +12,12 @@ on:
1212
- "main"
1313

1414
permissions:
15-
checks: write
15+
contents: read
1616

1717
jobs:
1818
build:
19+
permissions:
20+
checks: write
1921
name: Test on OTP ${{ matrix.otp_version }} and ${{ matrix.os }}
2022
runs-on: ${{ matrix.os }}
2123
strategy:

.github/workflows/labeler.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,13 @@
11
name: "Pull Request Labeler"
22
on: [pull_request_target]
33

4+
permissions:
5+
contents: read
6+
47
jobs:
58
triage:
9+
permissions:
10+
pull-requests: write # required for labeling PRs
611
runs-on: ubuntu-24.04
712
steps:
813
- uses: actions/labeler@v4

.github/workflows/w3c_interop.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
branches:
99
- 'main'
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
interop_tests:
1316
name: Run W3C Trace Context Interop Tests

0 commit comments

Comments
 (0)