Skip to content

Commit 0b9c0b8

Browse files
committed
ci: use minimal permissions for Github Actions
Fixes #348 we only need to read the contents of the repo to run our tests, no other permissions are needed, as we currently do not publish via our CI jobs. Signed-off-by: Joe Richey <joerichey@google.com>
1 parent 8eb9c2d commit 0b9c0b8

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

.github/workflows/tests.yml

+3
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,9 @@ on:
88
schedule:
99
- cron: "0 12 * * 1"
1010

11+
permissions:
12+
contents: read
13+
1114
env:
1215
CARGO_INCREMENTAL: 0
1316
RUSTFLAGS: "-Dwarnings"

0 commit comments

Comments
 (0)