Skip to content

Commit 7993c1f

Browse files
authored
ci: scope down GitHub Token permissions (#607)
* ci: scope down permissions for api_diff_check.yml * ci: scope down permissions for labeler.yml * ci: scope down permissions for go.yml * ci: scope down permissions for codegen.yml
1 parent 695755c commit 7993c1f

File tree

4 files changed

+12
-0
lines changed

4 files changed

+12
-0
lines changed

.github/workflows/api_diff_check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ '*' ]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013

1114
build:

.github/workflows/codegen.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
codegen-test:
1114
name: SDK Codegen Test

.github/workflows/go.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
pull_request:
77
branches: [ main ]
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
unit-tests:
1114
name: SDK Unit Tests

.github/workflows/labeler.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- "main"
77

8+
permissions:
9+
issues: write
10+
811
jobs:
912
labeler:
1013
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)