From cd30ed3ed887fb9f58bb30c0aaa493e7977e9ec9 Mon Sep 17 00:00:00 2001 From: Matt Sutkus <97645156+msuitcase@users.noreply.github.com> Date: Fri, 9 Oct 2026 01:31:21 -0700 Subject: [PATCH] ci: set least-privilege GITHUB_TOKEN permissions Default the CI workflow token to read-only. Only the docs job writes to the repo (gh-pages deploy), so it alone gets contents: write. release.yml already declares its own permissions and is unchanged. Refs SEC-847 --- .github/workflows/ci.yml | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 34ec96510..1a4acf6f0 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -6,6 +6,9 @@ on: pull_request: ~ workflow_dispatch: ~ +permissions: + contents: read + jobs: # build checks that the app can build and runs tests on the latest node version build: @@ -82,6 +85,8 @@ jobs: docs: if: github.ref == 'refs/heads/master' runs-on: ubuntu-latest + permissions: + contents: write # peaceiris/actions-gh-pages pushes to gh-pages steps: - uses: actions/checkout@v7 with: