From b664f046602ac880b19e2b9c8b2f0271cf8da032 Mon Sep 17 00:00:00 2001 From: ghost <49853598+JSONbored@users.noreply.github.com> Date: Fri, 29 May 2026 02:06:27 -0700 Subject: [PATCH] fix(ci): isolate release write token --- .github/workflows/npm-publish.yml | 14 ++++++++++++-- 1 file changed, 12 insertions(+), 2 deletions(-) diff --git a/.github/workflows/npm-publish.yml b/.github/workflows/npm-publish.yml index 92f9573f1e..5b13be059e 100644 --- a/.github/workflows/npm-publish.yml +++ b/.github/workflows/npm-publish.yml @@ -6,8 +6,7 @@ on: - "mcp-v*.*.*" permissions: - contents: write - id-token: write + contents: read concurrency: group: npm-publish-${{ github.ref_name }} @@ -16,12 +15,16 @@ concurrency: jobs: publish: runs-on: ubuntu-latest + permissions: + contents: read + id-token: write timeout-minutes: 20 steps: - name: Checkout uses: actions/checkout@93cb6efe18208431cddfb8368fd83d5badbf9bfd # v5 with: fetch-depth: 0 + persist-credentials: false - name: Setup Node uses: actions/setup-node@a0853c24544627f65ddf259abe73b1d18a591444 # v5 @@ -67,6 +70,13 @@ jobs: - name: Publish with npm trusted publishing run: npx -y npm@11.15.0 publish --workspace @jsonbored/gittensory-mcp --access public --provenance + github-release: + runs-on: ubuntu-latest + needs: publish + timeout-minutes: 5 + permissions: + contents: write + steps: - name: Create GitHub release env: GH_TOKEN: ${{ github.token }}