Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

org.opencontainers.image.source label is incorrect

Đang mở
#78 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

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
Loại issue
Lỗi
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
docker, dockerfile, github-actions
Lĩnh vực
ci-cd, devops

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ả

bug

Found a bug? Maybe our Slack Community can help.

Slack Community

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:

  1. Run the GHA with input values unrelated to the current repo
  2. 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

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của cloudposse/github-action-docker-build-push

Tất cả issue của cloudposse/github-action-docker-build-push

Issue tương tự

Thêm issue về DevOps

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.