From 85a1d172b4a18862fd26b0511368b5658c1d1583 Mon Sep 17 00:00:00 2001 From: Mike Williams Date: Mon, 9 Nov 2026 16:05:52 +1100 Subject: [PATCH] ci: restrict GITHUB_TOKEN to read-only contents The repo's default workflow token has write access, and nothing in CI needs it. Resolves code-scanning alert #7 (actions/missing-workflow-permissions). --- .github/workflows/ci.yml | 3 +++ 1 file changed, 3 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 0a5df2a..2652749 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -5,6 +5,9 @@ on: branches: [main] pull_request: +permissions: + contents: read + env: CARGO_TERM_COLOR: always