From 01ca103e3d74dea1e15630ed9bdb240174c78fdb Mon Sep 17 00:00:00 2001 From: "aikido-autofix[bot]" <119856028+aikido-autofix[bot]@users.noreply.github.com> Date: Thu, 8 Oct 2026 14:11:24 +0000 Subject: [PATCH] fix(security): Restrict id-token write permission to build job only in publish workflow --- .github/workflows/publish.yml | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ddaec2383..f9b7f6fef 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,13 +3,14 @@ on: release: types: [created] permissions: - id-token: write contents: read jobs: tests: name: Linting and running tests runs-on: ubuntu-latest + permissions: + contents: read steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1 with: @@ -54,6 +55,9 @@ jobs: needs: - tests runs-on: ubuntu-latest + permissions: + id-token: write + contents: read steps: - uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1