Skip to content

Commit b19e408

Browse files
committed
Add explicit read-only permissions to CI workflows
Signed-off-by: Arpit Jain <arpitjain099@gmail.com>
1 parent ed7f4d7 commit b19e408

16 files changed

Lines changed: 48 additions & 0 deletions

.github/workflows/client-cpp-package.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ env:
2020
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
2121
MAVEN_ARGS: --batch-mode --no-transfer-progress
2222

23+
permissions:
24+
contents: read
25+
2326
jobs:
2427
should-package:
2528
runs-on: ubuntu-latest

.github/workflows/cluster-it-1c1d.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ env:
2929
MAVEN_ARGS: --batch-mode --no-transfer-progress
3030
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
3131

32+
permissions:
33+
contents: read
34+
3235
jobs:
3336
Simple:
3437
strategy:

.github/workflows/cluster-it-1c1d1a.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ env:
3030
MAVEN_ARGS: --batch-mode --no-transfer-progress
3131
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
3232

33+
permissions:
34+
contents: read
35+
3336
jobs:
3437
AINode:
3538
strategy:

.github/workflows/cluster-it-1c3d.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,9 @@ env:
3030
MAVEN_ARGS: --batch-mode --no-transfer-progress
3131
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
3232

33+
permissions:
34+
contents: read
35+
3336
jobs:
3437
Simple:
3538
strategy:

.github/workflows/compile-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ env:
3232
MAVEN_ARGS: --batch-mode --no-transfer-progress
3333
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
3434

35+
permissions:
36+
contents: read
37+
3538
jobs:
3639
compile-check:
3740
strategy:

.github/workflows/daily-it.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ env:
1414
MAVEN_ARGS: --batch-mode --no-transfer-progress
1515
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
Simple:
1922
strategy:

.github/workflows/daily-ut.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,9 @@ env:
1414
MAVEN_ARGS: --batch-mode --no-transfer-progress
1515
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
1616

17+
permissions:
18+
contents: read
19+
1720
jobs:
1821
unit-test:
1922
strategy:

.github/workflows/dependency-check.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -32,6 +32,9 @@ env:
3232
MAVEN_ARGS: --batch-mode --no-transfer-progress
3333
DEVELOCITY_ACCESS_KEY: ${{ secrets.DEVELOCITY_ACCESS_KEY }}
3434

35+
permissions:
36+
contents: read
37+
3538
jobs:
3639
dependency-check:
3740
strategy:

.github/workflows/greeting-ainode.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -24,6 +24,9 @@ env:
2424
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
2525
MAVEN_ARGS: --batch-mode --no-transfer-progress
2626

27+
permissions:
28+
contents: read
29+
2730
jobs:
2831
check-style:
2932
runs-on: ubuntu-latest

.github/workflows/multi-language-client.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ env:
3939
MAVEN_OPTS: -Dhttp.keepAlive=false -Dmaven.wagon.http.pool=false -Dmaven.wagon.http.retryHandler.class=standard -Dmaven.wagon.http.retryHandler.count=3
4040
MAVEN_ARGS: --batch-mode --no-transfer-progress
4141

42+
permissions:
43+
contents: read
44+
4245
jobs:
4346
cpp:
4447
strategy:

0 commit comments

Comments
 (0)