-
Notifications
You must be signed in to change notification settings - Fork 96
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' into exclusion-framework-ruby
Signed-off-by: Ayan Sinha Mahapatra <[email protected]>
- Loading branch information
Showing
62 changed files
with
1,278 additions
and
316 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -68,6 +68,7 @@ ScanPipe's own commands are listed under the ``[scanpipe]`` section:: | |
list-project | ||
output | ||
purldb-scan-worker | ||
report | ||
reset-project | ||
run | ||
show-pipeline | ||
|
@@ -174,6 +175,10 @@ Required arguments (one of): | |
| project-2 | pkg:deb/debian/[email protected] | | ||
+----------------+---------------------------------+ | ||
|
||
.. tip:: | ||
In place of a local path, a download URL to the CSV file is supported for the | ||
``--input-list`` argument. | ||
|
||
Optional arguments: | ||
|
||
- ``--project-name-suffix`` Optional custom suffix to append to project names. | ||
|
@@ -194,14 +199,15 @@ Optional arguments: | |
Example: Processing Multiple Docker Images | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
Assume multiple Docker images are available in a directory named ``local-data/`` on | ||
Suppose you have multiple Docker images stored in a directory named ``local-data/`` on | ||
the host machine. | ||
To process these images with the ``analyze_docker_image`` pipeline using asynchronous | ||
execution:: | ||
To process these images using the ``analyze_docker_image`` pipeline with asynchronous | ||
execution, you can use this command:: | ||
|
||
$ docker compose run --rm \ | ||
--volume local-data/:/input-data:ro \ | ||
web scanpipe batch-create input-data/ \ | ||
--volume local-data/:/input-data/:ro \ | ||
web scanpipe batch-create | ||
--input-directory /input-data/ \ | ||
--pipeline analyze_docker_image \ | ||
--label "Docker" \ | ||
--execute --async | ||
|
@@ -224,6 +230,19 @@ Each Docker image in the ``local-data/`` directory will result in the creation o | |
project with the specified pipeline (``analyze_docker_image``) executed by worker | ||
services. | ||
|
||
Example: Processing Multiple Develop to Deploy Mapping | ||
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^ | ||
|
||
To process an input list CSV file with the ``map_deploy_to_develop`` pipeline using | ||
asynchronous execution:: | ||
|
||
$ docker compose run --rm \ | ||
web scanpipe batch-create \ | ||
--input-list https://url/input_list.csv \ | ||
--pipeline map_deploy_to_develop \ | ||
--label "d2d_mapping" \ | ||
--execute --async | ||
|
||
`$ scanpipe list-pipeline [--verbosity {0,1,2,3}]` | ||
-------------------------------------------------- | ||
|
||
|
@@ -375,6 +394,46 @@ your outputs on the host machine when running with Docker. | |
.. tip:: To specify a CycloneDX spec version (default to latest), use the syntax | ||
``cyclonedx:VERSION`` as format value. For example: ``--format cyclonedx:1.5``. | ||
|
||
.. _cli_report: | ||
|
||
`$ scanpipe report --model MODEL` | ||
--------------------------------- | ||
|
||
Generates an XLSX report of selected projects based on the provided criteria. | ||
|
||
Required arguments: | ||
|
||
- ``--model {package,dependency,resource,relation,message,todo}`` | ||
Specifies the model to include in the XLSX report. Available choices are based on | ||
predefined object types. | ||
|
||
Optional arguments: | ||
|
||
- ``--output-directory OUTPUT_DIRECTORY`` | ||
The path to the directory where the report file will be created. If not provided, | ||
the report file will be created in the current working directory. | ||
|
||
- ``--search SEARCH`` | ||
Filter projects by searching for the provided string in their name. | ||
|
||
- ``--label LABELS`` | ||
Filter projects by the provided label(s). Multiple labels can be provided by using | ||
this argument multiple times. | ||
|
||
.. note:: | ||
Either ``--label`` or ``--search`` must be provided to select projects. | ||
|
||
Example usage: | ||
|
||
1. Generate a report for all projects tagged with "d2d" and include the **TODOS** | ||
worksheet:: | ||
|
||
$ scanpipe report --model todo --label d2d | ||
|
||
2. Generate a report for projects whose names contain the word "audit" and include the | ||
**PACKAGES** worksheet:: | ||
|
||
$ scanpipe report --model package --search audit | ||
|
||
.. _cli_check_compliance: | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.