From 0b9c0b86c0e0346ede6a4a1b88d39c223baf4e0c Mon Sep 17 00:00:00 2001 From: Joe Richey Date: Fri, 24 Mar 2023 14:38:24 -0700 Subject: [PATCH] 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 --- .github/workflows/tests.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/tests.yml b/.github/workflows/tests.yml index a8717d7f..0c9f3f15 100644 --- a/.github/workflows/tests.yml +++ b/.github/workflows/tests.yml @@ -8,6 +8,9 @@ on: schedule: - cron: "0 12 * * 1" +permissions: + contents: read + env: CARGO_INCREMENTAL: 0 RUSTFLAGS: "-Dwarnings"