Skip to content

Commit adb2b0e

Browse files
authored
[CI] gha: set default workflow permissions (#1976)
1 parent e8c0d5a commit adb2b0e

5 files changed

Lines changed: 15 additions & 0 deletions

File tree

.github/workflows/docs.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -26,6 +26,9 @@ on:
2626
branches:
2727
- '*'
2828

29+
permissions:
30+
contents: read
31+
2932
env:
3033
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
3134

.github/workflows/first-interaction.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,9 @@ on:
2323
pull_request:
2424
types: [opened]
2525

26+
permissions:
27+
contents: read
28+
2629
concurrency:
2730
group: ${{ github.workflow }}-${{ github.ref }}
2831
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

.github/workflows/pyflink.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ on:
3939
- 'python/**'
4040
- '.github/workflows/pyflink.yml'
4141

42+
permissions:
43+
contents: read
44+
4245
concurrency:
4346
group: ${{ github.workflow }}-${{ github.ref }}
4447
cancel-in-progress: true

.github/workflows/python-wheel.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ on:
3939
- 'python/**'
4040
- '.github/workflows/python-wheel.yml'
4141

42+
permissions:
43+
contents: read
44+
4245
concurrency:
4346
group: ${{ github.workflow }}-${{ github.ref }}
4447
cancel-in-progress: ${{ github.ref != 'refs/heads/master' }}

.github/workflows/r.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ on:
3939
- 'R/**'
4040
- '.github/workflows/r.yml'
4141

42+
permissions:
43+
contents: read
44+
4245
env:
4346
MAVEN_OPTS: -Dmaven.wagon.httpconnectionManager.ttlSeconds=60
4447
DO_NOT_TRACK: true

0 commit comments

Comments
 (0)