Description
Describe the bug
If a package scan through scan_single_package
in ScanCode.io intially failed, the pipeline is restarted manually in ScanCode.io, and it completes successfully, then no usage policy (e.g. Approved Package) is assigned to the package in DejaCode. This results in the status indicator (e.g. checkmark) to be missing in the inventory of the product. Re-submitting the package for scan from DejaCode does not help, as no scan is started if there is a previous run already in ScanCode.io.
Similarly it does not help to delete the existing scan in ScanCode.io and the trigger "Scan All Packages" again, at least not if there is a prior successful scan, if you've followed the steps from the previous paragraph.
To Reproduce
Steps to reproduce the behavior:
- Create a product
- Import an SBOM
- Make ScanCode.io fail the scan (e.g. cut internet connection, stop ScanCode.io, ...)
- Restart the pipeline in ScanCode.io for the affected package(s)
- Observe that the scan results are correctly shown for the package in DejaCode but no usage policy is assigned
Expected behavior
I would hope either hope that the usage policy is assigned on later scans as well or that there is a way to trigger another evaluation based on the data that is now present. At the very least deleting the projects in ScanCode.io and then triggering "Scan All Packages" again should also reevaluate the usage policy and update the scan result.
Screenshots
n.a.
Context (OS, Browser, Device, etc.):
n.a.