From 62e6673a79af54ec1f1a7f15ed2b09ea5668a88a Mon Sep 17 00:00:00 2001 From: mmb <24275+mmb@users.noreply.github.com> Date: Fri, 14 Feb 2025 03:12:03 -0800 Subject: [PATCH] Fix attest build provenance steps in publishing docker image examples (#36263) --- .../publishing-packages/publishing-docker-images.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/content/actions/use-cases-and-examples/publishing-packages/publishing-docker-images.md b/content/actions/use-cases-and-examples/publishing-packages/publishing-docker-images.md index 381fcf910c9f..c0035e68758f 100644 --- a/content/actions/use-cases-and-examples/publishing-packages/publishing-docker-images.md +++ b/content/actions/use-cases-and-examples/publishing-packages/publishing-docker-images.md @@ -116,7 +116,7 @@ jobs: - name: Generate artifact attestation uses: actions/attest-build-provenance@v2 with: - subject-name: {% raw %}${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}{% endraw %} + subject-name: index.docker.io/my-docker-hub-namespace/my-docker-hub-repository subject-digest: {% raw %}${{ steps.push.outputs.digest }}{% endraw %} push-to-registry: true {% endif -%} @@ -229,7 +229,7 @@ jobs: - name: Generate artifact attestation uses: actions/attest-build-provenance@v2 with: - subject-name: {% raw %}${{ env.REGISTRY }}/${{ env.IMAGE_NAME}}{% endraw %} + subject-name: {% data reusables.package_registry.container-registry-hostname %}/{% raw %}${{ github.repository }}{% endraw %} subject-digest: {% raw %}${{ steps.push.outputs.digest }}{% endraw %} push-to-registry: true {% endif -%}