Skip to content

Commit bf9ec9b

Browse files
committed
update(security): set GH token permissions scopes in CI workflows
1 parent 8a61f6f commit bf9ec9b

File tree

3 files changed

+13
-0
lines changed

3 files changed

+13
-0
lines changed

.github/workflows/docker-test.yml

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,11 @@ on:
1414
paths-ignore:
1515
- "docs/**"
1616

17+
# Sets permissions of the GITHUB_TOKEN
18+
permissions:
19+
contents: read
20+
21+
1722
jobs:
1823
docker-build:
1924
runs-on: ubuntu-latest

.github/workflows/lint-and-tests.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,10 @@ on:
1515
paths-ignore:
1616
- "docs/**"
1717

18+
# Sets permissions of the GITHUB_TOKEN
19+
permissions:
20+
contents: read
21+
1822
jobs:
1923
lintest:
2024
runs-on: ubuntu-latest

.github/workflows/pr-auto-labeler.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ name: "🏷 PR Labeler"
22
on:
33
- pull_request_target
44

5+
permissions:
6+
contents: read
7+
pull-requests: write
8+
59
jobs:
610
triage:
711
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)