Skip to content

Commit f40b153

Browse files
committed
Restrict permissions of GITHUB_TOKEN
1 parent e55964b commit f40b153

File tree

4 files changed

+15
-0
lines changed

4 files changed

+15
-0
lines changed

.github/workflows/build-all-samples.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
pull_request:
88
branches:
99
- '*'
10+
11+
permissions:
12+
contents: read
13+
1014
jobs:
1115
linux:
1216
name: Linux

.github/workflows/codeql.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ on:
66
schedule:
77
- cron: '23 2 * * 4'
88

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
analyze:
1114
name: Analyze (${{ matrix.language }})

.github/workflows/gradle-wrapper-validation.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,10 @@ on:
77
pull_request:
88
branches:
99
- '*'
10+
11+
permissions:
12+
contents: read
13+
1014
jobs:
1115
validation:
1216
name: "Validation"

.github/workflows/nohttp.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,10 @@ on:
88
pull_request:
99
branches:
1010
- '*'
11+
12+
permissions:
13+
contents: read
14+
1115
jobs:
1216
nohttp:
1317
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)