Feature Request: read SBOM from stdin
まだ誰も着手していません。
評価
調査の方向性
まず、SBOM ファイルの入力を受け付ける CLI 関数と、例に示されている Verify コマンドを特定します。単一の '-' を渡すと SBOM が標準入力から読み取られるようになり、文書化されている container-piping のユースケースも含まれれば完了です。
索引モデルが issue の本文から書いたものです。
説明
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.
- 主要言語
- Java
- スター
- 101
- フォーク
- 46
- 平均マージ
- 15時間 57分
- マージ済み PR(30日)
- 10
コントリビューションガイド
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
spdx/tools-java のほかの issue
-
enhancement
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
spdx/tools-java#331 · リアクション 1 件 ·
-
bug spdx-2.3 validation
難易度 4/5 3〜5日 初心者へのやさしさ 55/100
spdx/tools-java#316 · コメント 1 件 · リアクション 1 件 ·
-
Release 2.0.8 オープン
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
spdx/tools-java#313 · リアクション 1 件 ·
-
spdx-2.x spdx-3.x
難易度 3/5 1〜2日 初心者へのやさしさ 58/100
spdx/tools-java#290 · コメント 2 件 ·
-
validation
難易度 3/5 1〜2日 初心者へのやさしさ 48/100
spdx/tools-java#287 · コメント 1 件 · リアクション 1 件 ·
spdx/tools-java の issue をすべて見る
似ている issue
-
area/plugin
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
kestra-io/plugin-kestra#190 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 70/100
google-ai-edge/LiteRT-LM#3739 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
integra-team-red/meet-map#249 ·
-
[Studio][Bug] Cancelled create-user dialog keeps the password and admin switch for the next attempt オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
apache/rocketmq-dashboard#5064 ·
-
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
wso2/dpdp-accelerator#287 ·