From 0e6b6af8eeb3f837966162aa3db987864f1de9e6 Mon Sep 17 00:00:00 2001 From: Paolo Insogna Date: Fri, 11 Sep 2026 14:42:05 +0200 Subject: [PATCH] chore: Use default token for release notes. Signed-off-by: Paolo Insogna --- .github/workflows/release.yml | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index b438168..14db863 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -43,6 +43,9 @@ jobs: run-tests: ${{ inputs.skip-tests == false }} release-npm: + permissions: + contents: write + id-token: write needs: build-and-test runs-on: ubuntu-latest environment: npm @@ -77,5 +80,7 @@ jobs: GITHUB_TOKEN: ${{ github.token }} run: npm publish --access public --tag ${{ inputs.prerelease == true && 'next' || 'latest' }} ${{ inputs.skip-optional-publish == true && '--ignore-scripts' || '' }} - name: 'Create release notes' + env: + GITHUB_TOKEN: ${{ github.token }} run: | - npx @matteo.collina/release-notes -a ${{ secrets.GITHUB_TOKEN }} -t v${{ inputs.version }} -r python-node -o platformatic ${{ inputs.prerelease == true && '-p' || '' }} -c ${{ github.ref }} + npx @matteo.collina/release-notes -t v${{ inputs.version }} -r python-node -o platformatic ${{ inputs.prerelease == true && '-p' || '' }} -c ${{ github.ref }}