Skip to content

Commit 7f16716

Browse files
committed
CI: Restrict default permissions
Reduces risk of arbitrary code is run by attacker.
1 parent 4b923d7 commit 7f16716

File tree

3 files changed

+6
-0
lines changed

3 files changed

+6
-0
lines changed

.github/workflows/check.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: "Check with pre-commit"
2+
permissions:
3+
contents: read
24
on:
35
push:
46
branches: ["main"]

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: "Release"
2+
permissions:
3+
contents: read
24
on:
35
release:
46
types:

.github/workflows/test.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
name: "Test"
2+
permissions:
3+
contents: read
24
on:
35
push:
46
branches: ["main"]

0 commit comments

Comments
 (0)