Add mirror & scan workflows for hardened python DHI#53
Merged
Conversation
Extend _mirror-image.yml with an optional authenticated source-registry login (backward compatible; anonymous mirrors unaffected) and add the hardened python caller workflows: - mirror-hardened-python.yml: dhi.io/python:3.14-alpine3.23 -> ghcr.io/toddysm/quarantine/hardened/python (logs in to dhi.io with DOCKERHUB_USERNAME / DOCKERHUB_TOKEN) - scan-hardened-python.yml: quarantine/hardened/python -> base/hardened/python (reuses _scan-image.yml unchanged) Refs #50, #51, #52
There was a problem hiding this comment.
Pull request overview
Adds new GitHub Actions caller workflows to mirror and then scan/promote the Docker Hardened Image (DHI) Python 3.14-alpine3.23, extending the existing reusable mirror workflow to optionally authenticate to a private source registry (dhi.io) while keeping existing anonymous mirrors unchanged.
Changes:
- Extend
.github/workflows/_mirror-image.ymlwith an optionalsource_login_registryinput + optional source-registry credentials secrets, and perform a conditionalcrane auth loginto the source registry. - Add
.github/workflows/mirror-hardened-python.ymlto mirrordhi.io/python:3.14-alpine3.23intoghcr.io/toddysm/quarantine/hardened/python. - Add
.github/workflows/scan-hardened-python.ymlto scanquarantine/hardened/pythonand promote passing tags intobase/hardened/pythonusing the existing reusable scan workflow.
Reviewed changes
Copilot reviewed 3 out of 3 changed files in this pull request and generated no comments.
| File | Description |
|---|---|
| .github/workflows/_mirror-image.yml | Adds optional authenticated login to a configurable source registry before mirroring, preserving the existing reusable mirror pattern. |
| .github/workflows/mirror-hardened-python.yml | New mirror caller for hardened Python DHI into the quarantine hardened namespace, passing Docker Hub creds for dhi.io login. |
| .github/workflows/scan-hardened-python.yml | New scan-and-promote caller for hardened Python from quarantine to base, reusing _scan-image.yml unchanged. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
Owner
Author
|
Closing as requested. Copilot review completed with no comments. |
Address Copilot review on PR #53: note in the header that hardened DHI images are promoted into base/hardened/<image> instead of the golden/<image> scheme from workflow-naming.md, so dest_repo intentionally departs from the documented convention.
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
Adds a mirror workflow and a scan-and-promote workflow for the Docker
Hardened Image (DHI)
python:3.14-alpine3.23, reusing the existingcaller + reusable-workflow pattern.
dhi.io/python:3.14-alpine3.23— pulled fromdhi.io,which requires authentication with Docker Hub credentials.
ghcr.io/toddysm/quarantine/hardened/pythonghcr.io/toddysm/base/hardened/pythonChanges
_mirror-image.yml— optional, backward-compatible authenticatedsource-registry login. New input
source_login_registryplus secretssource_registry_username/source_registry_password. The login step onlyruns when
source_login_registryis set, so existing anonymous mirrors(python/node/openjdk) are unaffected.
mirror-hardened-python.yml(new caller) — mirrorsdhi.io/python:3.14-alpine3.23intoquarantine/hardened/python, logging into
dhi.iowithDOCKERHUB_USERNAME/DOCKERHUB_TOKEN.scan-hardened-python.yml(new caller) — scansquarantine/hardened/pythonand promotes passing tags intobase/hardened/python. Reuses_scan-image.ymlunchanged.Notes / follow-ups
3.14-alpine3.2; based on the catalog URL path(
python/alpine-3.23/3.14) this PR uses3.14-alpine3.23. One-line edit ifthat needs changing.
DOCKERHUB_USERNAME,DOCKERHUB_TOKEN(andGHCR_DELETE_TOKENfor scan cleanup, if not already set).Closes #50
Closes #51
Closes #52