Skip to content

Commit

Permalink
ci: use minimal permissions for Github Actions (#351)
Browse files Browse the repository at this point in the history
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]>
  • Loading branch information
josephlr authored Mar 25, 2023
1 parent 8eb9c2d commit 03defac
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@ on:
schedule:
- cron: "0 12 * * 1"

permissions:
contents: read

env:
CARGO_INCREMENTAL: 0
RUSTFLAGS: "-Dwarnings"
Expand Down

0 comments on commit 03defac

Please sign in to comment.