Skip to content

Commit d4bb796

Browse files
committed
Add least-privilege permissions to CI workflow
1 parent 9d29209 commit d4bb796

2 files changed

Lines changed: 4 additions & 2 deletions

File tree

.github/workflows/tests.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,8 @@ on:
1919
- "*.mdx"
2020
- "website/**"
2121

22-
permissions: {}
22+
permissions:
23+
contents: read
2324

2425
jobs:
2526
validate:

.github/workflows/universe_validation.yml

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,8 @@ on:
1313
paths:
1414
- "website/meta/universe.json"
1515

16-
permissions: {}
16+
permissions:
17+
contents: read
1718

1819
jobs:
1920
validate:

0 commit comments

Comments
 (0)