Skip to content

Commit df58a93

Browse files
committed
CI: Restrict default permissions
Reduces risk of arbitrary code is run by attacker.
1 parent 3e690b4 commit df58a93

File tree

2 files changed

+4
-0
lines changed

2 files changed

+4
-0
lines changed

.github/workflows/docs.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: Build docs
2+
permissions:
3+
contents: read
24

35
on:
46

.github/workflows/test_and_deploy.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: tests
2+
permissions:
3+
contents: read
24

35
on:
46
push:

0 commit comments

Comments
 (0)