trivy-azure-pipelines-task icon indicating copy to clipboard operation
trivy-azure-pipelines-task copied to clipboard

Vulnerabilities display issue when scanned multiple images

Open nosalan opened this issue 2 years ago • 2 comments

I invoke Trivy task twice in the pipeline and while the report contains tabs of both scans, when switching between the tabs the list of vulnerabilities in not refreshed. On the screenshot below, there are two scan results, one with 12 vulnerabilities and the other one with 0 vulnerabilities. When I switch to the second tab, it still shows vulnerabilities list from the first tab.

image

Here are the tasks:

- task: Docker@2
  displayName: Login to Container Registry
  inputs:
    containerRegistry: "testmanagement"
    command: "login"
- task: trivy@1
  displayName: Scanning XXXXXX-client:$(DOCKER_TAG)
  inputs:
    image: XXXXXX/XXXXXX-client:$(DOCKER_TAG)
    docker: false
    exitCode: 0
- task: trivy@1
  displayName: Scanning XXXXXX-flows:$(DOCKER_TAG)
  inputs:
    image: XXXXXX/XXXXXX-flows:$(DOCKER_TAG)
    docker: false
    exitCode: 0

nosalan avatar Oct 12 '22 11:10 nosalan