@@ -115,15 +115,12 @@ def scancodeio_submit_scan(uris, user_uuid, dataspace_uuid):
115115
116116
117117@job
118- def scancodeio_submit_manifest_inspection (scancodeproject_uuid , user_uuid ):
119- """
120- Submit the provided `uris` to ScanCode.io as an asynchronous task.
121- Only publicly available URLs are sent to ScanCode.io.
122- """
118+ def scancodeio_submit_load_sbom (scancodeproject_uuid , user_uuid ):
119+ """Submit the provided SBOM file to ScanCode.io as an asynchronous task."""
123120 from dje .models import DejacodeUser
124121
125122 logger .info (
126- f"Entering scancodeio_submit_manifest_inspection task with "
123+ f"Entering scancodeio_submit_load_sbom task with "
127124 f"scancodeproject_uuid={ scancodeproject_uuid } user_uuid={ user_uuid } "
128125 )
129126
@@ -140,24 +137,24 @@ def scancodeio_submit_manifest_inspection(scancodeproject_uuid, user_uuid):
140137 # Create a Project instance on ScanCode.io without immediate execution of the
141138 # pipeline. This allows to get instant feedback from ScanCode.io about the Project
142139 # creation status and its related data, even in SYNC mode.
143- response = scancodeio .submit_manifest_inspection (
140+ response = scancodeio .submit_load_sbom (
144141 project_name = scancodeproject_uuid ,
145142 file_location = scancode_project .input_file .path ,
146143 user_uuid = user_uuid ,
147144 execute_now = False ,
148145 )
149146
150147 if not response :
151- logger .info ("Error submitting the manifest to ScanCode.io server" )
148+ logger .info ("Error submitting the SBOM file to ScanCode.io server" )
152149 scancode_project .status = ScanCodeProject .Status .FAILURE
153- msg = "- Error: Manifest could not be submitted to ScanCode.io"
150+ msg = "- Error: SBOM could not be submitted to ScanCode.io"
154151 scancode_project .append_to_log (msg , save = True )
155152 return
156153
157154 logger .info ("Update the ScanCodeProject instance" )
158155 scancode_project .status = ScanCodeProject .Status .SUBMITTED
159156 scancode_project .project_uuid = response .get ("uuid" )
160- msg = "- Manifest submitted to ScanCode.io for inspection"
157+ msg = "- SBOM file submitted to ScanCode.io for inspection"
161158 scancode_project .append_to_log (msg , save = True )
162159
163160 # Delay the execution of the pipeline after the ScancodeProject instance was
@@ -192,8 +189,8 @@ def pull_project_data_from_scancodeio(scancodeproject_uuid):
192189 status = ScanCodeProject .Status .IMPORT_STARTED
193190 )
194191
195- if scancode_project .type == scancode_project .ProjectType .IMPORT_FROM_MANIFEST :
196- notification_verb = "Import packages from manifest "
192+ if scancode_project .type == scancode_project .ProjectType .LOAD_SBOMS :
193+ notification_verb = "Load Packages from SBOMs "
197194 else :
198195 notification_verb = "Import packages from ScanCode.io"
199196
0 commit comments