GeezerVison is showing github.com — feat(dockerhub): use OIDC to publish to docker hub when available by JonZeolla · Pull Request #101 · Zenable-io/ai-native-python
Conversation
JonZeolla
commented
Jul 23, 2026
•
edited by ai-coding-guardrails
Bot
Loading
Uh oh!
There was an error while loading. Please reload this page.
Summary
- replace separate Docker Hub questions with one subscription choice
- disable Docker Hub publishing for
none
- use username/PAT authentication for
personal
- use short-lived OIDC authentication for
team and business
- generate documentation and setup guidance only for the selected path
Testing
uv run pytest tests/test_cookiecutter.py::test_dockerhub_subscription_prompt tests/test_cookiecutter.py::test_dockerhub_release_authentication --no-cov
- full pre-commit suite passed during commit
Based on docker/login-action#1048 and Docker OIDC subscription requirements.
PR Description from Zenable
Replace the binary Docker Hub yes/no question with a single dockerhub_subscription choice (none, personal, team, business) that determines the authentication strategy.
none: disables Docker Hub publishing entirely
personal: uses username/PAT authentication
team / business: uses short-lived OIDC authentication
- Generated documentation, workflow, README, and Taskfile are conditionally rendered based on the selected subscription tier
Testing
uv run pytest tests/test_cookiecutter.py::test_dockerhub_subscription_prompt tests/test_cookiecutter.py::test_dockerhub_release_authentication --no-cov
- Full pre-commit suite passed during commit
Based on docker/login-action#1048 and Docker OIDC subscription requirements.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
ai-coding-guardrails[bot] reacted with eyes emoji
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nice work! 😎
I didn't find anything of concern
Risk: 🟢 Low
Risk analysis
The highest scores are for test_coverage and security_impact. Test coverage is strong with new parametrized tests validating each subscription path, though the OIDC flow isn't fully exercised. Security impact is moderate due to the introduction of new authentication methods (OIDC and PAT-based) which, while following best practices, increase the surface area for credential handling and misconfiguration. The change affects generated project templates rather than runtime code, limiting blast radius and operational risk.
Reviewed with 🤟 by Zenable
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
JonZeolla
changed the title
feat(dockerhub): select authentication by subscription
feat(dockerhub): use OIDC to publish to docker hub when available
Jul 23, 2026
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Development
Successfully merging this pull request may close these issues.
Uh oh!
There was an error while loading. Please reload this page.
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.