Repository navigation
feat: publish cookbook OCI artifacts with SPDX - #87
Merged
Merged
Conversation
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.
Summary
Cookbook maintainers can opt into publishing cookbook archives and SPDX SBOMs to
ghcr.io/sous-chefs/cookbooks/<cookbook>:<version>alongside existing releases. OCI failures produce warnings and leave existing Supermarket publishing unaffected.The separate reusable workflow packages the release tag using Cinc Workstation's cookbook loader and Supermarket staging code. It checks the metadata version, preserves file permissions and normalises archive timestamps. Anchore generates SPDX from the staged contents; ORAS pushes one cookbook payload layer and attaches the SPDX document. Workstation uses
latestand third-party actions use major versions.Verification
actionlint -shellcheck='' -pyflakes='' .github/workflows/release-cookbook.yml .github/workflows/publish-cookbook-oci.ymlpassed.shellcheck --shell bash -;git diff --checkpassed.Follow-up
The nginx pilot will qualify actual GHCR publishing and public access. New GHCR packages need their visibility changed to public. This iteration publishes artifacts and SPDX only; signing, provenance and Cinc Supermarket registration are outside this change.