-
Notifications
You must be signed in to change notification settings - Fork 1.8k
Description
Bug description
Tags are not applied to vulnerabilities when using the Import Scan Results option from the Engagement view for the "Trivy Operator Scan" type.
Interestingly, tags are added successfully if I first create an empty test and then use the Re-upload Scan option from the test details view.
This feature worked as expected in version 2.52.0.
Steps to reproduce
Steps to reproduce the behavior:
- Go to an Engagement.
- Click on Import Scan Results.
- Select Trivy Operator Scan as the scan type.
- Verify the imported vulnerabilities.
- Observe that the vulnerabilities do not have tags.
Expected behavior
Vulnerabilities should have tags applied automatically: os-pkgs (from the class field) and test (from the namespace field).
Deployment method (select with an X)
- Docker Compose
- Kubernetes
- GoDojo
Environment information
- DefectDojo version: 2.54.1
Sample scan files
test.json
Screenshots
Import Scan results -> No tags

Additional context
I also reproduced this issue on a vanilla DefectDojo instance (2.54.1) using Docker Compose.
