Skip to main content
After a scan completes, verify the results to make pass/fail decisions for your CI/CD pipeline. This page explains the verification logic and provides implementation examples.

Verification Logic

The verification workflow handles two scenarios:

Scenario 1: Single Image (First Scan)

When the product contains only one image (the latest scan), the verification checks for findings matching the configured statuses. If found, the build fails.

Scenario 2: Multiple Images (Comparison)

When multiple images exist, the verification:
  1. Compares the latest image with the previous image
  2. Reports statistics on resolved, unchanged, and newly introduced findings
  3. Fails if any findings with configured statuses exist in the latest image

Configuration

Finding Status Filter

Control which finding statuses cause the build to fail using the FAIL_ON_STATUS environment variable: Default: new,inProgress – Fails on findings that require attention. Examples:

Comparison Statistics

The comparison API categorizes findings into three groups:

API Endpoints Used

Implementation

Output Example

Multi-image scenario with issues:

Next Steps