Skip to content

Commit 15c3bc8

Browse files
authored
ci: declare workflow-level contents: read on the 17 build/test workflows (a2ui-project#1445)
Pins the default GITHUB_TOKEN to contents: read on every workflow in .github/workflows/.
1 parent e51cdbc commit 15c3bc8

17 files changed

Lines changed: 51 additions & 0 deletions

.github/workflows/check_license.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,9 @@ on:
2020
- main
2121
pull_request:
2222

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

.github/workflows/check_private_index.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,9 @@ on:
1818
push:
1919
pull_request:
2020

21+
permissions:
22+
contents: read
23+
2124
jobs:
2225
check-for-private-index:
2326
runs-on: ubuntu-latest

.github/workflows/composer_build_and_test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ on:
2828
- "renderers/web_core/**"
2929
- ".github/workflows/composer_build_and_test.yml"
3030

31+
permissions:
32+
contents: read
33+
3134
jobs:
3235
build-and-test:
3336
runs-on: ubuntu-latest

.github/workflows/e2e_test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
schedule:
99
- cron: "0 0 * * *" # daily
1010

11+
permissions:
12+
contents: read
13+
1114
jobs:
1215
e2e_test:
1316
# Do not run on forked branches,

.github/workflows/editor_build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ on:
2828
- "renderers/web_core/**"
2929
- ".github/workflows/editor_build.yml"
3030

31+
permissions:
32+
contents: read
33+
3134
jobs:
3235
build:
3336
runs-on: ubuntu-latest

.github/workflows/enforce-formatting.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
branches: [main]
2020
pull_request:
2121

22+
permissions:
23+
contents: read
24+
2225
jobs:
2326
enforce-formatting:
2427
runs-on: ubuntu-latest

.github/workflows/flutter_packages_test.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,9 @@ concurrency:
3131
group: ${{ github.workflow }}-${{ github.head_ref || github.run_id }}
3232
cancel-in-progress: true
3333

34+
permissions:
35+
contents: read
36+
3437
jobs:
3538
matrix:
3639
runs-on: ubuntu-latest

.github/workflows/inspector_build.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,6 +29,9 @@ on:
2929
- "renderers/web_core/**"
3030
- ".github/workflows/inspector_build.yml"
3131

32+
permissions:
33+
contents: read
34+
3235
jobs:
3336
build:
3437
runs-on: ubuntu-latest

.github/workflows/kotlin_agent_sdk_build_and_test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ on:
2828
- "specification/**/json/**"
2929
- "agent_sdks/conformance/**"
3030

31+
permissions:
32+
contents: read
33+
3134
jobs:
3235
build-and-test:
3336
runs-on: ubuntu-latest

.github/workflows/lit_build_and_test.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,9 @@ on:
2727
- "renderers/web_core/**"
2828
- ".github/workflows/lit_build_and_test.yml"
2929

30+
permissions:
31+
contents: read
32+
3033
jobs:
3134
build-and-test:
3235
runs-on: ubuntu-latest

0 commit comments

Comments
 (0)