Skip to content

Commit 03defac

Browse files
authored
ci: use minimal permissions for Github Actions (#351)
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 <[email protected]>
1 parent 8eb9c2d commit 03defac

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)