Skip to content
This repository has been archived by the owner on Oct 25, 2023. It is now read-only.

Commit

Permalink
cleanup, get proper digest into docker provenance
Browse files Browse the repository at this point in the history
Signed-off-by: Joe Eltgroth <[email protected]>
  • Loading branch information
joeeltgroth committed Aug 16, 2023
1 parent 778427c commit 0c8c55e
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/actions/srp-helper/publish-container/publish.sh
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ observer_agent -m stop_observer -f network_provenance.json
key="${registry}/${BUILDPACK}-buildpack:${version}"
echo "key set to ${key}"
action="publish"
image="${registry}/${BUILDPACK}-buildpack:${version}"
image=$(docker inspect --format='{{index .RepoDigests 0}}' "${key}")
srp provenance add-output docker \
--set-key="${key}" \
--action-key="${action}" \
Expand All @@ -47,4 +47,5 @@ srp provenance add-input syft --scan-target="${key}" --output-key="${key}"
srp provenance action import-observation --name="publish" --file=network_provenance.json
srp provenance action stop

echo "------------- ${SRP_WORKING_DIR}/_provenance.json -------------"
cat "${SRP_WORKING_DIR}"/_provenance.json

0 comments on commit 0c8c55e

Please sign in to comment.