org.opencontainers.image.source label is incorrect
Nobody has claimed this yet.
Assessment
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Newbie friendliness
- 35/100
Research direction
Inspect the GitHub Action logic that generates the org.opencontainers.image.source label, and compare it with the existing image.url handling. Reproduce the issue using the supplied organization, registry, image_name, and repository values; done means the source label identifies the actual GitHub repository or supports the proposed explicit override.
Written by the indexing model from the issue text.
Description
Found a bug? Maybe our Slack Community can help.
Describe the Bug
org.opencontainers.image.source=https://github.com/${{ inputs.organization }}/${{ inputs.repository }} is an invalid label when the org/repo approach are not used so you have to put improper values to fix this label.
The image.url label would be accurate to the actual GH repo, if the values are the same.
Expected Behavior
Create a proper label for the image.source like it does for image.url.
Steps to Reproduce
Steps to reproduce the behavior:
- Run the GHA with input values unrelated to the current repo
- Observe the label is incorrect.
Example:
Inputs:
organization: client
registry: client.jfrog.io
image_name: example-image
repository: jfrog-non-prod
Creates a label like this:
--label org.opencontainers.image.source=https://github.com/client/jfrog-non-prod
If you don't provide a repository since it is included in the image name or if the GH repo is different from the docker image repo, the label will perpetually be wrong unless you set the repo input to a value solely for satisfying this label.
organization: client
registry: client.jfrog.io
image_name: jfrog-non-prod/example-image
repository: example-image
What if the GH repo is under a completely different name than the docker image name? Something where there is a client-sandbox GH org that is pushing to the client org so the label would also be wrong there as well.
Suggestion: update the logic for that label to match that of image.url and allow an override based on a new input.
Screenshots
This is internal client work so I cannot provide the screenshot and blurring private info would remove the usefulness.
Environment (please complete the following information):
Anything that will help us triage the bug will help. Here are some ideas:
- OS: N/A
- Version [e.g. 10.15]: N/A
Additional Context
This is active in the 1.17.2 version.
- Dominant language
- Dockerfile
- Stars
- 14
- Forks
- 15
- PR merge metrics
- No merged PRs in 30d
Getting set up
- No Dockerfile or Docker Compose file
- No pull request template
- Read the contributing guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from cloudposse/github-action-docker-build-push
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 72/100
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 35/100
cloudposse/github-action-docker-build-push#77 · 1 comment ·
-
triage
Difficulty 3/5 1-2 days Newbie friendliness 35/100
cloudposse/github-action-docker-build-push#57 · 3 reactions ·
-
Dependency DashboardOpen
Difficulty 2/5 1-3 hours Newbie friendliness 20/100
All issues in cloudposse/github-action-docker-build-push
Similar issues
-
Difficulty 2/5 1-3 hours Newbie friendliness 65/100
buildkite/elastic-ci-stack-for-aws#2050 ·
Maintainers usually reply within 1 day
-
Area: Java bug report needs triage OS: Windows
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
actions/runner-images#15458 ·
Maintainers usually reply within 3 days
-
tech-debt
Difficulty 2/5 1-3 hours Newbie friendliness 66/100
Maintainers usually reply within 1 day
-
Difficulty 2/5 1-3 hours Newbie friendliness 78/100
Maintainers usually reply within 1 day
-
application-issue
Difficulty 2/5 1-3 hours Newbie friendliness 67/100
Installomator/Installomator#3715 ·
Maintainers usually reply within 3 days