BUG: DejaCode exported CycloneDX SBOM does not retain dependency relationship
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
調査の方向性
Actions > Load packages from SBOMs および Share > CycloneDX を通じて、推移的依存関係を含む CycloneDX 1.6 SBOM を使用してワークフローを再現します。インポートされたインベントリと依存関係を、エクスポートされた依存関係と比較し、関連する issue #122 を確認します。インポートで直接依存関係と間接依存関係が保持され、エクスポートで各パッケージが実際の依存関係への dependsOn 参照付きで出力されれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Describe the bug
Current DejaCode versions already represent the relationships between packages in a product's inventory and their dependencies with other packages. However, when exporting an SBOM that relationship is not correctly represented in the resulting file. This was tested with CycloneDX as output format.
The resulting file list all packages as if they are direct dependencies. This is incorrect, has some may only be transitive dependencies. This is highly important to get right for regulatory purposes as it indicates who is responsible for fixing issues or updating versions. If it is a direct dependency then the organisation developing the product is directly responsible. However, if a dependency of the product has transitive dependencies where a package is outdated, then the organisation developing the product may have to wait for a patch of that dependency to be released. Furthermore, displaying transitive dependencies as direct dependencies is simply inaccurate for the purpose of software component analysis.
To Reproduce
- Create a product in DejaCode
- Generate an SBOM for a product with a tool such as cdxgen, where there are transitive dependencies
- Use "Actions > Load packages from SBOMs" with "Scan all packages of this product post-import" checked
- Once the import is completed you should see the inventory populated and dependencies filled
- Use "Share > CycloneDX" to export an SBOM in format version 1.6
- Open the SBOM in an editor of your choice an see that all packages are listed as direct dependencies under the key "dependencies" and within that "dependsOn".
Expected behavior
Instead of having all packages listed in "dependsOn" as direct dependencies, they should be listed as follow:
- All dependencies should each have an entry like:
{ "ref": "pkg:pkgmanager/[email protected]", "dependsOn": [] }, - "dependsOn" should reference the PURLs of other packages that they depend on, if any (just like dependencies already do in DejaCode's internal model)
Important: The SBOM import must also ensure that only direct dependencies are listed as packages in the inventory and indirect/transitive dependencies are listed as dependecies. Otherwise this cannot be fixed afterwards. Hence, this issue is related to https://github.com/aboutcode-org/dejacode/issues/122
Screenshots
n.a.
Context (OS, Browser, Device, etc.):
n.a.
- 主要言語
- Python
- スター
- 52
- フォーク
- 30
- 平均マージ
- 4時間 57分
- マージ済み PR(30日)
- 21
環境構築
- Dockerfile または Docker Compose ファイルあり
- プルリクエストのテンプレートあり
- コントリビューションガイドを読む
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
aboutcode-org/dejacode のほかの issue
-
documentation
難易度 3/5 1〜2日 初心者へのやさしさ 55/100
aboutcode-org/dejacode#606 ·
メンテナーはふだん 1 日以内に返信
-
難易度 4/5 3〜5日 初心者へのやさしさ 45/100
aboutcode-org/dejacode#603 ·
メンテナーはふだん 1 日以内に返信
-
design needed enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 62/100
aboutcode-org/dejacode#561 · コメント 3 件 ·
メンテナーはふだん 1 日以内に返信
-
Enhancement request: Refine License Category - Copyleft Limited再び着手できるかも @hesa が 118 日前に担当しましたが、オープン中のプルリクエストはありません。 オープンdesign needed enhancement
aboutcode-org/dejacode#499 · コメント 13 件 · 担当者 3 名 ·
メンテナーはふだん 1 日以内に返信
-
BUG: Product overview page splits product with many versions across pages再び着手できるかも このイシューのプルリクエストはマージされずにクローズされました。 オープンbug design needed enhancement
難易度 3/5 1〜2日 初心者へのやさしさ 45/100
aboutcode-org/dejacode#460 ·
メンテナーはふだん 1 日以内に返信
aboutcode-org/dejacode の issue をすべて見る
似ている issue
-
factory
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
Arize-ai/phoenix#17420 · コメント 1 件 · リアクション 1 件 ·
メンテナーはふだん 1 日以内に返信
-
bug
難易度 2/5 1〜3時間 初心者へのやさしさ 84/100
FireDynamics/LEDSmokeAnalysis#176 ·
メンテナーはふだん 1 日以内に返信
-
PC
難易度 2/5 1〜3時間 初心者へのやさしさ 74/100
メンテナーはふだん 1 日以内に返信
-
dependencies
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
dlt-contrib/dlt-filesystem#51 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 68/100
メンテナーはふだん 1 日以内に返信