Skip to content

Commit 05feffb

Browse files
committed
fix(attest): get the correct image name from package.json
1 parent 99ea06f commit 05feffb

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

.github/workflows/semantic-release.yml

+3-1
Original file line numberDiff line numberDiff line change
@@ -71,11 +71,13 @@ jobs:
7171
run: |
7272
npm run release
7373
echo "version=$(npm run env | grep npm_package_version | cut -d '=' -f 2)" >> $GITHUB_OUTPUT
74+
echo "package_name=$(npm run env | grep npm_package_name | cut -d '=' -f 2)" >> $GITHUB_OUTPUT
7475
7576
- name: '✍️ Attest'
7677
uses: actions/attest-build-provenance@v2
7778
id: attest
7879
with:
79-
subject-name: ghcr.io/${{ github.repository }}
80+
subject-name: ghcr.io/${{ github.repository_owner }}/${{ steps.npm-release.outputs.package_name }} # TODO: replace with line below
81+
# subject-name: ghcr.io/${{ github.repository }}
8082
subject-digest: sha256:${{ steps.npm-release.outputs.docker_image_sha_long }}
8183
push-to-registry: true

0 commit comments

Comments
 (0)