From 407c32fa077224564cb8747aa524ebb9e75999a2 Mon Sep 17 00:00:00 2001 From: Alex Luckett Date: Fri, 6 Mar 2026 15:56:38 +0000 Subject: [PATCH] use trusted publishing, not npm tokens --- .github/workflows/publish.yml | 7 +++++-- package.json | 2 +- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index e07381ca4..3edadc51b 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -3,6 +3,11 @@ on: release: types: - published + +permissions: + id-token: write # Required for OIDC trusted publishing + contents: read + jobs: ci: uses: ./.github/workflows/check-pull-request.yml @@ -44,5 +49,3 @@ jobs: - name: Publish run: ./scripts/publish-package.sh "${{ github.event.release.tag_name }}" "${{ github.event.release.prerelease }}" - env: - NODE_AUTH_TOKEN: ${{ secrets.NPM_TOKEN }} diff --git a/package.json b/package.json index a96a7f962..f79fac52d 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ }, "repository": { "type": "git", - "url": "git+https://github.com/DEFRA/forms-engine-plugin.git" + "url": "https://github.com/DEFRA/forms-engine-plugin" }, "overrides": { "serve-handler": {