Skip to content

Commit 6345345

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

3 files changed

Lines changed: 6 additions & 0 deletions

File tree

.github/workflows/release.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22

33
name: Release
4+
permissions:
5+
contents: read
46
on:
57
release:
68
types:

.github/workflows/reviewdog.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
---
22
name: Linting
3+
permissions:
4+
contents: read
35
on:
46
push:
57
branches-ignore:

.github/workflows/tests.yml

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,8 @@
11
---
22

33
name: Tests
4+
permissions:
5+
contents: read
46

57
on:
68
push:

0 commit comments

Comments
 (0)