From 05ec0bd87efc518acdd3ec23b22c289f43b3a1bd Mon Sep 17 00:00:00 2001 From: Shane McGuirt <10144278+srmcguirt@users.noreply.github.com> Date: Mon, 14 Sep 2026 04:19:45 -0400 Subject: [PATCH] chore(security): add top-level permissions blocks to workflows Weekly security sweep found ci.yml and gqlmin-size.yml lacked a top-level `permissions:` block (defaults to broad token scope). SECURITY.md already exists so no change needed there. Co-Authored-By: Claude Sonnet 5 Claude-Session: https://claude.ai/code/session_01Ffpooy4EeuKg77qhr5jVaW --- .github/workflows/ci.yml | 3 +++ .github/workflows/gqlmin-size.yml | 3 +++ 2 files changed, 6 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 9ecd028..f2010ff 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ on: pull_request: branches: [main] +permissions: + contents: read + env: CARGO_TERM_COLOR: always RUST_BACKTRACE: 1 diff --git a/.github/workflows/gqlmin-size.yml b/.github/workflows/gqlmin-size.yml index 7c59e4d..dce849a 100644 --- a/.github/workflows/gqlmin-size.yml +++ b/.github/workflows/gqlmin-size.yml @@ -15,6 +15,9 @@ on: - "Cargo.lock" - ".github/workflows/gqlmin-size.yml" +permissions: + contents: read + jobs: gqlmin-size: name: wasm size gate (≤ 6500 bytes gz)