feat: global annotations support #284
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Global annotations support.
Similarly to the annotations attached to a material #278, now you can a) define a list of optionally set of annotations at the attestation level. These annotations then will be injected into the resulting attestation and in another patch, exposed to plugins such as the notification ones.
att push
command.So for example, having the following schema with an annotation called
asset
already pre-populated and another one calledversion
without value.During the attestation process, when we init we'll see
$ chainloop att init INF Attestation initialized! now you can check its status or add materials to it ┌───────────────────┬──────────────────────────────────────┐ │ Initialized At │ 31 Jul 23 09:16 UTC │ ├───────────────────┼──────────────────────────────────────┤ │ Workflow │ 3e4ef02c-0f33-4248-84be-8a55ea2e3cb0 │ │ Name │ only-sbom │ │ Team │ │ │ Project │ foo │ │ Contract Revision │ 20 │ │ Annotations │ ------ │ │ │ asset: chainloop-oss │ │ │ version: [NOT SET] │ └───────────────────┴──────────────────────────────────────┘
then the annotation can be provided using the
attestation push
commandRefs #252