org.opencontainers.image.source label is incorrect
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 3/5
- Thời gian dự kiến
- 1-2 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Kiểm tra logic của GitHub Action tạo label org.opencontainers.image.source và so sánh với cách xử lý image.url hiện có. Tái hiện vấn đề bằng các giá trị organization, registry, image_name và repository được cung cấp; hoàn thành khi label source xác định đúng repository GitHub thực tế hoặc hỗ trợ override tường minh được đề xuất.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Dockerfile
- Star
- 14
- Fork
- 15
- Merge trung bình
- 8 giờ 45 phút
- Pull request đã merge (30 ngày)
- 1
Chuẩn bị môi trường
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Đọc hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của cloudposse/github-action-docker-build-push
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 35/100
cloudposse/github-action-docker-build-push#77 · 1 bình luận ·
-
triage
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 35/100
cloudposse/github-action-docker-build-push#57 · 3 reaction ·
-
Dependency DashboardĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 20/100
Tất cả issue của cloudposse/github-action-docker-build-push
Issue tương tự
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 67/100
MISP/misp-workbench#496 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 84/100
praetorianer777/Dynamo#53 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Security: Vulnerable PHP version (CVE-2026-109618 / CVE-2026-109619) in current Docker imagesĐang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
MISP/misp-docker#478 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 78/100
IBM/cloud-pak-deployer#1205 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
nuts-foundation/nuts-admin#344 ·
Maintainer thường phản hồi trong vòng 5 ngày