Skip to content

Commit b9da877

Browse files
Update docs and add CHANGELOG entry
Signed-off-by: Ayan Sinha Mahapatra <ayansmahapatra@gmail.com>
1 parent 03c21a8 commit b9da877

4 files changed

Lines changed: 45 additions & 14 deletions

File tree

CHANGELOG.rst

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,6 +17,20 @@ v33.2.0 (unreleased)
1717

1818
https://github.com/nexB/scancode.io/issues/1071
1919

20+
- Rename pipeline for consistency and precision:
21+
* scan_codebase_packages: inspect_packages
22+
23+
Restructure the inspect_manifest pipeline into:
24+
* load_sbom: for loading SPDX/CycloneDX SBOMs and ABOUT files
25+
* resolve_dependencies: for resolving package dependencies
26+
* inspect_packages: gets package data from package manifests/lockfiles
27+
28+
A data migration is included to facilitate the migration of existing data.
29+
Only the new names are available in the web UI but the REST API and CLI are backward
30+
compatible with the old names.
31+
https://github.com/nexB/scancode.io/issues/1034
32+
https://github.com/nexB/scancode.io/discussions/1035
33+
2034
v33.1.0 (2024-02-02)
2135
--------------------
2236

docs/automation.rst

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ automation methods such as a cron job or a git hook::
2727
"https://github.com/nexB/scancode.io/archive/refs/tags/v32.4.0.zip",
2828
]
2929
PIPELINES = [
30-
"scan_codebase_package",
30+
"inspect_packages",
3131
"find_vulnerabilities",
3232
]
3333
EXECUTE_NOW = True

docs/built-in-pipelines.rst

Lines changed: 16 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,22 @@ Load Inventory
7272
:members:
7373
:member-order: bysource
7474

75+
.. _pipeline_load_sbom:
76+
77+
Load SBOM
78+
---------
79+
.. autoclass:: scanpipe.pipelines.load_sbom.LoadSBOM()
80+
:members:
81+
:member-order: bysource
82+
83+
.. _pipeline_resolve_dependencies:
84+
85+
Resolve Dependencies
86+
--------------------
87+
.. autoclass:: scanpipe.pipelines.resolve_dependencies.ResolveDependencies()
88+
:members:
89+
:member-order: bysource
90+
7591
.. _pipeline_map_deploy_to_develop:
7692

7793
Map Deploy To Develop
@@ -126,14 +142,6 @@ Scan Codebase
126142
:members:
127143
:member-order: bysource
128144

129-
.. _pipeline_scan_codebase_package:
130-
131-
Scan Codebase Package
132-
---------------------
133-
.. autoclass:: scanpipe.pipelines.scan_codebase_packages.ScanCodebasePackages()
134-
:members:
135-
:member-order: bysource
136-
137145
.. _pipeline_scan_single_package:
138146

139147
Scan Single Package

docs/faq.rst

Lines changed: 14 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,27 @@ Here are some general guidelines based on different input scenarios:
2525

2626
- If you have a **Docker image** as input, use the
2727
:ref:`analyze_docker_image <pipeline_analyze_docker_image>` pipeline.
28-
- For a full **codebase compressed as an archive**, choose the
28+
- For a full **codebase compressed as an archive**, optionally also with
29+
it's **pre-resolved dependenices**, and want to detect all the packages
30+
present linked with their respective files, use the
2931
:ref:`scan_codebase <pipeline_scan_codebase>` pipeline.
30-
- If you have a **single package archive**, opt for the
32+
- If you have a **single package archive**, and you want to get information
33+
on licenses, copyrights and package metadata for it, opt for the
3134
:ref:`scan_single_package <pipeline_scan_single_package>` pipeline.
3235
- When dealing with a **Linux root filesystem** (rootfs), the
3336
:ref:`analyze_root_filesystem_or_vm_image <pipeline_analyze_root_filesystem>` pipeline
3437
is the appropriate choice.
3538
- For processing the results of a **ScanCode-toolkit scan** or **ScanCode.io scan**,
3639
use the :ref:`load_inventory <pipeline_load_inventory>` pipeline.
37-
- When you have **manifest files**, such as a
38-
**CycloneDX BOM, SPDX document, lockfile**, etc.,
39-
use the :ref:`inspect_packages <pipeline_inspect_packages>` pipeline.
40+
- When you want to import **SPDX/CycloneDX SBOMs or ABOUT files** into a project,
41+
use the :ref:`load_sbom <pipeline_load_sbom>` pipeline.
42+
- When you have **lockfiles or other package manifests** in a codebase and you want to
43+
resolve packages from their package requirements, use the
44+
:ref:`resolve_dependencies <pipeline_resolve_dependencies>` pipeline.
45+
- When you have application **package archives/codebases** and optionally also
46+
their **pre-resolved dependenices** and you want to **inspect packages**
47+
present in the package manifests and dependency, use the
48+
:ref:`inspect_packages <pipeline_inspect_packages>` pipeline.
4049
- For scenarios involving both a **development and deployment codebase**, consider using
4150
the :ref:`map_deploy_to_develop <pipeline_map_deploy_to_develop>` pipeline.
4251

0 commit comments

Comments
 (0)