Skip to content

Commit 1d8b6ea

Browse files
authored
ci: set token permissions to github workflows (#143)
* The top level permission for github workflows were set to be content read Signed-off-by: Joyce Brum <[email protected]>
1 parent a2b2b32 commit 1d8b6ea

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)