Install the prototype trivy scanner and send a request to POST /api/v1/scan, the enabled_capabilities.produces_mime_types is missed in the request json
What did you expect to happen:
The HTTP response code should be 400 and log error message like that: enabled_capabilities.produces_mime_types is not specified in the request in the trivy log, so that user could get the http 400 error and check the trivy log to diagnostic.
Environment:
Harbor version: 2.10.0
Harbor Scanner Adapter for Trivy version: sbom prototype
What steps did you take and what happened:
Install the prototype trivy scanner and send a request to
POST /api/v1/scan
, the enabled_capabilities.produces_mime_types is missed in the request jsonWhat did you expect to happen:
The HTTP response code should be 400 and log error message like that:
enabled_capabilities.produces_mime_types is not specified in the request
in the trivy log, so that user could get the http 400 error and check the trivy log to diagnostic.Environment: