Skip to content

Commit 475ee81

Browse files
uklotzdeorottier
authored andcommitted
Restrict permissions of GitHub actions
1 parent fc06ad6 commit 475ee81

File tree

3 files changed

+9
-3
lines changed

3 files changed

+9
-3
lines changed

.github/workflows/msrv.yaml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,8 +2,10 @@
22

33
name: msrv
44

5-
# read-only repo token
6-
# no access to secrets
5+
# read-only repo token, no access to secrets
6+
permissions:
7+
contents: read
8+
79
on:
810
push:
911
branches: [main]

.github/workflows/pre-commit.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
# Same name as the file for consistent identification
44
name: pre-commit
55

6+
# read-only repo token, no access to secrets
67
permissions:
78
contents: read
89

.github/workflows/rust.yaml

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,10 @@
22

33
name: Build
44

5-
# read-only repo token
5+
# read-only repo token, no access to secrets
6+
permissions:
7+
contents: read
8+
69
# no access to secrets
710
on:
811
push:

0 commit comments

Comments
 (0)