diff --git a/.github/scripts/publish-npm.sh b/.github/scripts/publish-npm.sh index e0e5526bf7..1be1320839 100644 --- a/.github/scripts/publish-npm.sh +++ b/.github/scripts/publish-npm.sh @@ -41,5 +41,6 @@ do echo "Could not authenticate with $REGISTRY" exit 1 fi - npm publish --tag "$TAG" db-ui-core-"$VALID_SEMVER_VERSION".tgz + # https://docs.npmjs.com/generating-provenance-statements#example-github-actions-workflow + npm publish --tag "$TAG" db-ui-core-"$VALID_SEMVER_VERSION".tgz --provenance done diff --git a/.github/workflows/03-publish-packages.yml b/.github/workflows/03-publish-packages.yml index acef8ef021..a34e00160d 100644 --- a/.github/workflows/03-publish-packages.yml +++ b/.github/workflows/03-publish-packages.yml @@ -20,6 +20,8 @@ jobs: publish: name: Publish latest package versions to GitHub Packages runs-on: ubuntu-latest + permissions: + id-token: write steps: - name: ⬇ Checkout repo uses: actions/checkout@v4