+
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial-5-sboms/add-new-product.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial-5-sboms/imports-tab-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial-5-sboms/imports-tab-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial-5-sboms/inventory-tab-1.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial-5-sboms/inventory-tab-2.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/images/tutorial-5-sboms/share-cdx.jpg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions docs/index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,7 @@ Welcome to the very start of your DejaCode journey!
tutorial-2
tutorial-3
tutorial-4-vulnerabilities
tutorial-5-sboms

.. toctree::
:maxdepth: 1
Expand Down
Binary file added docs/sboms/storm-core-1.0.1.cdx.json.zip
Binary file not shown.
126 changes: 126 additions & 0 deletions docs/tutorial-5-sboms.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,126 @@
.. _user_tutorial_5_sboms:

Tutorial 5 - Working with SBOMs in a Product
============================================

You have just received a Software Bill of Materials (SBOM) from your supplier.
Sign into DejaCode.

Create a Product
----------------

1. Select :guilabel:`Products` from the main menu bar.

2. Click the green :guilabel:`Add Product` button. Enter the values you know.
Refer to :ref:`data_model_product` for details about each field.

3. Set a **name**, then click the :guilabel:`Add Product` button at the bottom
of the form.

.. image:: images/tutorial-5-sboms/add-new-product.jpg
:width: 500

Load an SBOM to your Product
----------------------------

1. Download and unzip the following SBOM example from:

`<https://github.com/aboutcode-org/dejacode/raw/refs/heads/main/docs/sboms/storm-core-1.0.1.cdx.json.zip>`_.

2. On the Product details page, from the :guilabel:`Action` dropdown, select
:guilabel:`Load Packages from SBOMs`:

* Click the Browse field beneath :guilabel:`SBOM file or zip archive`
* Select the **storm-core-1.0.cdx.json** file and leave the additional options
unchecked and click the :guilabel:`Load Packages` button.

.. image:: images/tutorial-5-sboms/action-load-packages-from-sbom.jpg
:width: 300

3. Click the :guilabel:`Imports` tab to view your progress.

.. image:: images/tutorial-5-sboms/imports-tab-1.jpg

4. View your import results in the :guilabel:`Inventory` tab.

.. image:: images/tutorial-5-sboms/inventory-tab-1.jpg

5. You can enrich the data provided by your supplier,
From the :guilabel:`Action` dropdown, select
:guilabel:`Improve Packages from PurlDB`:

.. image:: images/tutorial-5-sboms/improve-packages-from-purldb.jpg
:width: 300

6. Click the :guilabel:`Imports` tab to view your progress.

.. image:: images/tutorial-5-sboms/imports-tab-2.jpg

7. Return to the :guilabel:`Inventory` tab.

.. image:: images/tutorial-5-sboms/inventory-tab-2.jpg

8. Filter the Inventory by :guilabel:`Compliance status` to determine which packages
may require additional curation. Select :guilabel:`Review Required in this context`.

.. image:: images/tutorial-5-sboms/compliance-status-filter.jpg

9. Click the pencil icon in the Item column to review a Package. Use the modal form
to update the :guilabel:`Concluded license expression` and select the
:guilabel:`Approved in this context` and click the :guilabel:`Update` button.

.. image:: images/tutorial-5-sboms/product-package-relationship.jpg

10. Unfilter the Inventory by selecting :guilabel:`All`
from the :guilabel:`Compliance status` dropdown.

.. image:: images/tutorial-5-sboms/compliance-status-all.jpg

Review Vulnerabilities Affecting Your Product
---------------------------------------------

1. You can filter Inventory by vulnerable packages.

.. image:: images/tutorial-5-sboms/inventory-affected-by-vulnerabilities.jpg
:width: 300

2. Navigate to the :guilabel:`Vulnerabilities` tab on the Product page, which presents
a comprehensive view of all the Vulnerabilities for your Product filtered to those
with a Risk greater than the Risk Threshold defined for your Dataspace.

.. image:: images/tutorial-5-sboms/product-vulnerabilities-tab-1.jpg

3. You can sort and filter by Risk, Exploitability and Severity, as well as other
fields, to focus on specific Vulnerabilities.

4. You can set a specific Risk Threshold for your Product. Click the pencil icon
next to the Product name, scroll down to :guilabel:`Vulnerabilitiesrisk threshold`
and enter a value such as 9 and click the :guilabel:`Update Product` button
to filter your results to show only critical items.

.. image:: images/tutorial-5-sboms/product-vulnerabilities-risk-threshold.jpg
:width: 300

Conduct Vulnerability Analysis
------------------------------

1. Review each vulnerability in the :guilabel:`Vulnerabilities` tab.

.. image:: images/tutorial-5-sboms/vulnerability-analysis-modal.jpg

2. Add details or analysis for each vulnerability as needed, which will
enhance reporting and exports.

.. image:: images/tutorial-5-sboms/vulnerabilities-tab-with-analysis.jpg

Export CycloneDX SBOM with VEX
------------------------------

1. On the Product details page, from the :guilabel:`Share` dropdown, select
:guilabel:`CycloneDX SBOM + VEX`.

.. image:: images/tutorial-5-sboms/share-cdx.jpg
:width: 300

2. The analysis details you provide for product package vulnerabilities are
included in the ``vulnerabilities`` section of the CycloneDX VEX output.
点击 这是indexloc提供的php浏览器服务,不要输入任何密码和下载