File tree Expand file tree Collapse file tree 3 files changed +12
-3
lines changed
vulnerabilities/pipelines Expand file tree Collapse file tree 3 files changed +12
-3
lines changed Original file line number Diff line number Diff line change @@ -298,10 +298,14 @@ version management from `univers <https://github.com/aboutcode-org/univers>`_.
298298 **advisories_count ** should never be directly added in steps.
299299
300300
301+ .. attention ::
302+
303+ Implement ``on_failure `` to handle cleanup in case of pipeline failure.
304+ Cleanup of downloaded archives or cloned repos is necessary to avoid potential resource leakage.
301305
302306.. note ::
303307
304- | Use ``make valid`` to format your code using black and isort automatically.
308+ | Use ``make valid`` to format your new code using black and isort automatically.
305309 | Use ``make check`` to check for formatting errors.
306310
307311Register the Importer Pipeline
Original file line number Diff line number Diff line change @@ -187,6 +187,11 @@ methods.
187187 self .log(f " Successfully flagged { ghost_package_count:,d } ghost Packages " )
188188
189189
190+ .. attention ::
191+
192+ Implement ``on_failure `` to handle cleanup in case of pipeline failure.
193+ Cleanup of downloaded archives or cloned repos is necessary to avoid potential resource leakage.
194+
190195.. note ::
191196
192197 | Use ``make valid`` to format your new code using black and isort automatically.
Original file line number Diff line number Diff line change @@ -104,8 +104,8 @@ class VulnerableCodeBaseImporterPipeline(VulnerableCodePipeline):
104104 Base importer pipeline for importing advisories.
105105
106106 Uses:
107- Subclass this Pipeline and implement ``advisories_count`` and ``collect_advisories`` method.
108- Also override the ``steps`` and ``advisory_confidence`` as needed.
107+ Subclass this Pipeline and implement ``advisories_count`` and ``collect_advisories``
108+ method. Also override the ``steps`` and ``advisory_confidence`` as needed.
109109 """
110110
111111 pipeline_id = None # Unique Pipeline ID, this should be the name of pipeline module.
You can’t perform that action at this time.
0 commit comments