Skip to content

[codex] Sanitize GHCR image tags for branch names#89

Merged
gankoji merged 1 commit intomainfrom
codex/sanitize-ghcr-branch-tags
Mar 29, 2026
Merged

[codex] Sanitize GHCR image tags for branch names#89
gankoji merged 1 commit intomainfrom
codex/sanitize-ghcr-branch-tags

Conversation

@gankoji
Copy link
Copy Markdown
Member

@gankoji gankoji commented Mar 29, 2026

Summary

Sanitize Git refs before using them as GHCR image tags.

What changed

  • normalize the selected branch or head ref to lowercase
  • replace characters outside Docker tag syntax with -
  • keep the existing GHCR publishing flow unchanged otherwise

Why

Branch names like codex/switch-ghcr-publishing are valid Git refs but invalid Docker image tags, which causes the PR workflow build to fail before publishing can even be tested.

Validation

  • parsed .github/workflows/docker-image.yml with Ruby YAML
  • verified codex/switch-ghcr-publishing normalizes to codex-switch-ghcr-publishing

@gankoji gankoji marked this pull request as ready for review March 29, 2026 22:18
@gankoji gankoji merged commit 710db26 into main Mar 29, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant