Fix publish workflow failure by removing unauthorized ECR public publish path - #14
Merged
Merged
Conversation
Co-authored-by: marciogoda <6553007+marciogoda@users.noreply.github.com>
Copilot
AI
changed the title
[WIP] Fix failing GitHub Actions job Publish docker image
Fix publish workflow failure by removing unauthorized ECR public publish path
Sep 23, 2026
marciogoda
approved these changes
Sep 23, 2026
marciogoda
marked this pull request as ready for review
September 23, 2026 15:33
marciogoda
approved these changes
Sep 23, 2026
marciogoda
approved these changes
Sep 23, 2026
marciogoda
approved these changes
Sep 23, 2026
There was a problem hiding this comment.
Copilot review overview
🟢 Approval recommended
The unauthorized ECR path is removed and Docker Hub publishing is preserved.
Review effort: Lite
Findings: None
What changed in this PR
Removes unauthorized AWS ECR Public authentication and publishing while retaining Docker Hub multi-platform publishing.
Changes:
- Removed AWS credentials and ECR Public login.
- Removed the ECR Public image tag.
- Preserved Docker Hub publishing.
| File | Description |
|---|---|
.github/workflows/publish.yml |
Restricts publishing to Docker Hub. |
💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.
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.
The
Publish docker imageActions job failed during registry auth because the workflow attemptedecr-public:GetAuthorizationTokenwith a role that does not have that permission. This change removes the failing ECR public path and keeps publish behavior aligned with Docker Hub publishing.Root cause
publish.ymlincluded AWS credential setup + ECR public login, then attempted to publish an additionalpublic.ecr.aws/...tag.ecr-public:GetAuthorizationToken, causing the job to fail before image push.Workflow changes
aws-actions/configure-aws-credentials@v4).aws-actions/amazon-ecr-login@v2).docker/build-push-actiontags list.Resulting publish target
Publish to Docker Hubnow pushes only Docker Hub tags, matching the branch publish workflow’s registry scope.