Skip to content
This repository was archived by the owner on Nov 24, 2025. It is now read-only.

Add digest and tags outputs for later use in provenance - #88

Merged
Jeroen Knoops (JeroenKnoops) merged 4 commits into
masterfrom
add-digest-outputs
Jan 5, 2022
Merged

Jeroen Knoops (JeroenKnoops) merged 4 commits into
masterfrom
add-digest-outputs

Conversation

@JeroenKnoops

Copy link
Copy Markdown
Member

Changes

Add two outputs when docker image is pushed:

  • container-digest
  • container-tags

Usages example

These two outputs can be used to generate a provenance file and attach it to the image.

See example: https://github.com/philips-labs/slsa-provenance-action/blob/main/.github/workflows/ci.yaml#L128

Related issue

Closes #87
Part of #78

@JeroenKnoops
Jeroen Knoops (JeroenKnoops) requested a review from a team as a code owner January 4, 2022 20:45
@JeroenKnoops
Jeroen Knoops (JeroenKnoops) marked this pull request as draft January 4, 2022 20:48
@JeroenKnoops

Copy link
Copy Markdown
Member Author

I'm going to test this branch on some projects...

@JeroenKnoops

Jeroen Knoops (JeroenKnoops) commented Jan 4, 2022

Copy link
Copy Markdown
Member Author

The test projects works, but it is a big workflow... let's see how we can make this more user friendly.

JeroenKnoops/test-docker-ci-scripts@10bd2d5
https://github.com/JeroenKnoops/test-docker-ci-scripts/actions/runs/1655795996

@JeroenKnoops

Copy link
Copy Markdown
Member Author

In order to make a proper example in the readme, we need an extra output.

See #89

I propose to merge this one, since it's not breaking anything and work on the next issue, so we can create a nice readable and understandable example how to create a provenance file and how to attach that to the image.

@JeroenKnoops
Jeroen Knoops (JeroenKnoops) deleted the add-digest-outputs branch January 5, 2022 15:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add container_digest as output variable.

1 participant