Skip to content

Commit

Permalink
ci: use minimal permissions for Github Actions
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 <joerichey@google.com>
  • Loading branch information
josephlr committed Mar 24, 2023
1 parent 8eb9c2d commit 0b9c0b8
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .github/workflows/tests.yml
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 0b9c0b8

Please sign in to comment.