Repository navigation
fix(ci): verify promoted image SBOMs with Docker - #5891
Merged
Merged
Conversation
The jobs that promote release images to Quay run verify-image-sbom.sh, which needs Docker's buildx imagetools. GitHub's ubuntu-24.04 runners also ship podman, and the container engine helper prefers podman when it is installed, so the check exits before it inspects anything. Set CONTAINER_ENGINE=docker on the Release Dev promotion job and on the Publish Release image job, which covers the dev, prerelease and stable paths. Refs #4554 Co-authored-by: Drew Newberry <anewberry@nvidia.com> Signed-off-by: Simon Scatton <sscatton@nvidia.com>
|
🌿 Preview your docs: https://nvidia-preview-pr-5891.docs.buildwithfern.com/openshell |
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
The Quay promotion jobs run
tasks/scripts/verify-image-sbom.sh, which needs Docker'sbuildx imagetools. GitHub'subuntu-24.04runners also ship podman, andtasks/scripts/container-engine.shprefers podman when it is installed, so the SBOM check exits before it inspects anything. This setsCONTAINER_ENGINE: dockeron both promotion jobs, as.github/actions/build-docker-image/action.ymlalready does.This carries over the remaining part of #5889, which was closed as superseded by #5807 and #5808. #5889 set the variable only on the stable archive step. Since #5807, the dev and prerelease promotions call the same script on the same runners, so it's set at job level here.
Related Issue
Refs #4554
Changes
release-dev.yml, Promote Dev Images to Quay:CONTAINER_ENGINE: dockerin the jobenv. Without it, Release Dev promotesgateway, then fails the SBOM check beforesandboxandsupervisor, and skips the chart job.release-publish.yml, Publish Quay Images: the same, which covers the prerelease tag step and the stable archive step.Testing
actionlintpasses on both workflows.I read
container-engine.sh: with no override it returns podman wheneverpodmanis onPATH, andverify-image-sbom.shexits 2 on anything but Docker.Not verified in CI yet: the next Release Dev after merge exercises the dev path.
Checks appropriate to the affected code and behavior pass
Unit tests added/updated (if applicable)
E2E tests added/updated (if applicable)
Checklist