From f7dc89d26c43480a996063b3c647f6b6ad689fad Mon Sep 17 00:00:00 2001 From: Dmitriy Vasyura Date: Thu, 26 Nov 2026 03:30:46 -0800 Subject: [PATCH] Limit CI token exposure Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> --- .github/workflows/ci.yml | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 26431ec..0cec9fc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -7,12 +7,13 @@ on: - main - "release/*" -permissions: - contents: read +permissions: {} jobs: build: name: Build (${{ matrix.os }}) + permissions: + contents: read runs-on: ${{ matrix.os }} strategy: fail-fast: false @@ -24,6 +25,8 @@ jobs: steps: - name: Check out repository uses: actions/checkout@11d5960a326750d5838078e36cf38b85af677262 # v4.4.0 + with: + persist-credentials: false - name: Use Node.js 24.18.0 uses: actions/setup-node@49933ea5288caeca8642d1e84afbd3f7d6820020 # v4.4.0