Skip to content

Commit 4ab881d

Browse files
committed
ci: set token permissions to github workflows
The top level permission for github workflows were set to be content read Signed-off-by: Joyce Brum <joycebrum@google.com>
1 parent b35aa6a commit 4ab881d

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/apidiff.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
pull_request:
55
branches:
66
- master
7+
permissions:
8+
contents: read
79
jobs:
810
compat:
911
runs-on: ubuntu-latest

.github/workflows/tests.yaml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,8 @@ on:
44
pull_request:
55
branches:
66
- master
7+
permissions:
8+
contents: read
79
jobs:
810
unit-tests:
911
strategy:

0 commit comments

Comments
 (0)