Feature Request: read SBOM from stdin
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 35/100
Hướng nghiên cứu
Bắt đầu bằng cách tìm các hàm CLI chấp nhận tệp SBOM làm đầu vào và lệnh Verify được hiển thị trong ví dụ. Công việc được xem là hoàn tất khi truyền một dấu '-' duy nhất khiến SBOM được đọc từ đầu vào chuẩn, bao gồm cả trường hợp sử dụng container-piping được ghi lại trong tài liệu.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
It would be great if the CLI functions which read SBOMs support reading from piped standard input.
There are some cases where it is much more convenient to pipe output of one tool into another one instead of requiring files. For example: using the tools to validate a SBOM in a container requires: saving the SBOM to a file, run the container with a mounted filesystem containing the SBOM, referencing the same SBOM using a path matching how the container mount was specified, etc. whereas doing something like cat <sbom> | docker run --rm -i spdx-java-tools-validator:latest could be much simpler and could prevent needing an intermediary file altogether in certain circumstances.
A suggestion: one reasonably simple way to do this is just check the file input being just a single dash, - (like implemented in vim: vi -), which causes the system to explicitly read from stdin instead of attempting to load a file. This would allow something like the aforementioned cat <sbom> | docker run --rm -i spdx-java-tools-validator:latest Verify - to work for the example.
- Ngôn ngữ chính
- Java
- Star
- 101
- Fork
- 46
- Merge trung bình
- 15 giờ 57 phút
- Pull request đã merge (30 ngày)
- 10
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 spdx/tools-java
-
enhancement
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 45/100
spdx/tools-java#331 · 1 reaction ·
-
bug spdx-2.3 validation
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 55/100
spdx/tools-java#316 · 1 bình luận · 1 reaction ·
-
Release 2.0.8 Đang mở
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 20/100
spdx/tools-java#313 · 1 reaction ·
-
spdx-2.x spdx-3.x
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 58/100
spdx/tools-java#290 · 2 bình luận ·
-
Warning when validating Đang mởvalidation
Độ khó 3/5 1-2 ngày Mức phù hợp với người mới 48/100
spdx/tools-java#287 · 1 bình luận · 1 reaction ·
Tất cả issue của spdx/tools-java
Issue tương tự
-
documentation
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
inu-appcenter/memorIN-backend#288 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
-
frontend maui-pilot pilot-ask question
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
-
executions.Query — startDate and timeRange filters are sent with inverted comparison operators Đang mởarea/plugin
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
kestra-io/plugin-kestra#190 ·