Pass ref and repository values to run steps as environment instead of interpolating them into the script (a tag name may contain shell metacharacters). In the image workflow: refuse tags that are not vMAJOR.MINOR.PATCH[-prerelease] before anything runs, purge exactly the packages the prepare step added instead of autoremove and fail on any package or /etc file difference from the base image, send the registry write probe with an empty body, and remove the registry credential after the push also when the build fails. Co-Authored-By: Claude Sonnet 5.5 <[email protected]> Claude-Session: https://claude.ai/code/session_01MmzvM9skAvYcph2c9EiPcm