Skip to content

Commit a07943b

Browse files
authored
chore: update github action workflow permissions (#875)
This PR addresses the feedback from Github in googleapis/python-api-core#873
1 parent 0067a90 commit a07943b

4 files changed

Lines changed: 15 additions & 0 deletions

File tree

packages/google-api-core/.github/workflows/docs.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ on:
22
pull_request:
33
branches:
44
- main
5+
6+
permissions:
7+
contents: read
8+
59
name: docs
610
jobs:
711
docs:

packages/google-api-core/.github/workflows/lint.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ on:
22
pull_request:
33
branches:
44
- main
5+
6+
permissions:
7+
contents: read
8+
59
name: lint
610
jobs:
711
lint:

packages/google-api-core/.github/workflows/mypy.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,10 @@ on:
22
pull_request:
33
branches:
44
- main
5+
6+
permissions:
7+
contents: read
8+
59
name: mypy
610
jobs:
711
mypy:

packages/google-api-core/.github/workflows/unittest.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,9 @@ on:
55
branches:
66
- main
77

8+
permissions:
9+
contents: read
10+
811
jobs:
912
unit-prerelease:
1013
name: prerelease_deps

0 commit comments

Comments
 (0)