Repository navigation
publish.yml: explicit tags, native multi-arch builds, masked identity secrets - #4
Merged
Merged
Conversation
… secrets - tags / moving-tags: publish exactly these tags instead of the derived <sha>-<timestamp> tag. Tags are immutable unless listed in moving-tags; an existing tag with a different digest fails before any push. - platforms: build linux/amd64 and linux/arm64 on native runners, one matrix job each, merge the archives into one OCI index and sign it once. - build-args: literal KEY=VALUE build arguments. - workload-identity-provider / service-account / image may come from secrets, so public repositories do not print them in workflow logs. image-name appends a plain name to a secret image prefix. Without the new inputs the workflow behaves exactly as before.
This was referenced Oct 30, 2026
DeviaVir
marked this pull request as ready for review
October 30, 2026 10:44
This was referenced Oct 30, 2026
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
These changes to
publish.ymllet public repositories publish versioned, multi-arch, signed images. Callers that do not use the new inputs see no change: the same<sha>-<timestamp>tag (withprod-for production), one build onubuntu-24.04, and the same outputs.New inputs
tagsandmoving-tags: publish exactly these tags instead of the derived tag.moving-tags.platforms:linux/amd64and/orlinux/arm64.ubuntu-24.04,ubuntu-24.04-arm).publishunpacks every archive with the existing digest checks, and checks that its os/arch matches the platform.build-args: literalKEY=VALUEbuild arguments, passed as single argv elements.workload-identity-provider,service-accountandimagemay now come from secrets with the same names. Public repositories' logs are public, and secrets are masked.image-name: appended to the image (for example a secret prefix) for repositories that publish several images.Restrictions
build-secretsorbuild-arg-secrets. Otherwise the existingtoJSON(secrets)hand-off would expose the publisher secrets to build steps.imagecomes from a secret, GitHub drops theimageoutput because it contains a masked value. Usedigestinstead.Security model unchanged
buildhas no OIDC token and no registry credentials.publishruns no caller code.preparejob (no permissions, no checkout) validates the inputs and builds the matrix.Validation
actionlint(the same command aslint.yml): clean.zizmor --min-severity medium: no findings.bash -nandpy_compile, and 43 edge-case executions passed.image-namecomposes the path correctly.latestmoves, and a movinglatestupdates.