Skip to content

Commit e7ca943

Browse files
arpitjain099xuanyang15
authored andcommitted
ci: declare contents: read on seven workflows missing a permissions block
Merge #5687 Co-authored-by: Xuan Yang <xygoogle@google.com> COPYBARA_INTEGRATE_REVIEW=#5687 from arpitjain099:ci/add-permissions c145c10 PiperOrigin-RevId: 917369094
1 parent baf7efb commit e7ca943

7 files changed

Lines changed: 21 additions & 0 deletions

.github/workflows/check-file-contents.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,9 @@ on:
1919
paths:
2020
- '**.py'
2121

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

.github/workflows/discussion_answering.yml

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

9+
permissions:
10+
contents: read
11+
912
jobs:
1013
agent-answer-questions:
1114
if: >-

.github/workflows/mypy-new-errors.yml

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

99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
mypy-diff:
1215
runs-on: ubuntu-latest

.github/workflows/mypy.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,9 @@ name: Mypy Type Check
33
on:
44
workflow_dispatch:
55

6+
permissions:
7+
contents: read
8+
69
jobs:
710
mypy:
811
runs-on: ubuntu-latest

.github/workflows/pre-commit.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,9 @@ on:
2828
- '.pre-commit-config.yaml'
2929
- 'pyproject.toml'
3030

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

.github/workflows/python-unit-tests.yml

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

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

.github/workflows/upload-adk-docs-to-vertex-ai-search.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@ on:
77
# Manual trigger for testing and fixing
88
workflow_dispatch:
99

10+
permissions:
11+
contents: read
12+
1013
jobs:
1114
upload-adk-docs-to-vertex-ai-search:
1215
if: github.repository == 'google/adk-python'

0 commit comments

Comments
 (0)