Skip to content

initialize cosign trust root after install#220

Open
crazy-max wants to merge 1 commit into
docker:mainfrom
crazy-max:cosign-init
Open

initialize cosign trust root after install#220
crazy-max wants to merge 1 commit into
docker:mainfrom
crazy-max:cosign-init

Conversation

@crazy-max
Copy link
Copy Markdown
Member

This initializes Cosign's Sigstore trust root immediately after Cosign is installed.

Each existing Cosign install step now runs cosign initialize through the installed Cosign binary before later signing or verification commands run in that job.

This takes a smaller workflow-level approach than docker/actions-toolkit#1125 and docker/actions-toolkit#1133, which tried to pin or thread an explicit trusted root path through actions-toolkit. Those approaches are useful if we need a fully explicit or offline trusted-root artifact, but this failure is caused by Cosign using --new-bundle-format before its normal trust-root cache has been initialized. Since each job installs and uses Cosign in the same runner environment, initializing Cosign after install lets Cosign populate its own TUF cache and keeps the fix local to these workflows.

Signed-off-by: CrazyMax <1951866+crazy-max@users.noreply.github.com>
@crazy-max crazy-max requested a review from tonistiigi May 27, 2026 13:37
@crazy-max crazy-max marked this pull request as ready for review May 27, 2026 13:37
@crazy-max crazy-max requested a review from a team as a code owner May 27, 2026 13:37
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant