Create Artifact Metadata Storage Record on registry push#313
Merged
Conversation
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
…actions/attest into create-storage-records-on-registry-push
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
…actions/attest into create-storage-records-on-registry-push
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Contributor
There was a problem hiding this comment.
Pull request overview
This PR adds support for creating artifact metadata storage records when pushing attestations to a registry. The feature is controlled by a new create-storage-record input that defaults to true when push-to-registry is enabled.
Key changes:
- New
create-storage-recordinput parameter and corresponding logic to create storage records via the@actions/attestlibrary - Graceful error handling for storage record creation failures (logs warnings instead of failing the workflow)
- New
storage-record-idsoutput to expose the created storage record IDs
Reviewed changes
Copilot reviewed 7 out of 9 changed files in this pull request and generated 4 comments.
Show a summary per file
| File | Description |
|---|---|
| src/main.ts | Added createStorageRecord input field, output handling for storage record IDs, and logging for created storage records |
| src/index.ts | Added input parsing for the new create-storage-record parameter |
| src/attest.ts | Implemented storage record creation logic with protocol validation, error handling, and integration with the @actions/attest library |
| package.json | Updated version to 3.1.0 and bumped @actions/attest dependency to ^2.1.0 |
| action.yml | Added create-storage-record input definition and storage-record-ids output definition |
| tests/main.test.ts | Added test coverage for successful storage record creation and graceful failure handling |
| README.md | Updated documentation to describe the new feature, required permissions, and outputs |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
Co-authored-by: Copilot <175728472+Copilot@users.noreply.github.com>
bdehamer
reviewed
Dec 18, 2025
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
Signed-off-by: Meredith Lancaster <malancas@github.com>
bdehamer
reviewed
Dec 18, 2025
bdehamer
reviewed
Dec 18, 2025
Collaborator
bdehamer
left a comment
There was a problem hiding this comment.
You need run npm run bundle and check in the result /dist changes, but this looks good otherwise.
Signed-off-by: Meredith Lancaster <malancas@github.com>
bdehamer
approved these changes
Dec 18, 2025
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Adds support for creating artifact storage records if the
push-to-registryandcreate-storage-recordoptions are set totrue. If the Action fails to create a storage record, it gracefully handles the error and continues.