aboutcode-org / aboutcode-org/scancode.io

In alpine container where the first layer is not clearly alpine, we do not detect the OS

Đang mở
#1,159 0 bình luận 0 reaction 0 người được giao Xem trên GitHub
Ngôn ngữ chính
Python
Star
215
Fork
203
Merge trung bình
4 ngày 8 giờ
Pull request đã merge (30 ngày)
6

Mô tả

Say I build a container where:
- the first layer is not using a base image, and contains only something like:`COPY /etc/ssl/certs/ca-certificates.crt /etc/ssl/certs/ca-certificates.crt`
- the second layer is essentially an Alpine base image

Since the first layer does not have the /etc/os-release and related, it will not be detected as Alpine.

The same issue may exist with other distros.

The solution is to look at all the layers before deciding on what the primary OS is (and also nothing prohibits to have multiple OS personalities across layers or even in the same layer(

Hướng dẫn đóng góp

Mở hướng dẫn đóng góp

Đánh giá

Issue này chưa được đánh giá.

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.