Skip to main content

Verify No Critical or High Vulnerabilities

Type: Rule
ID: scribe-cve
Source: v2/rules/api/scribe-api-cve.yaml
Rego Source: scribe-api-cve.rego
Labels: SCA, Blueprint, Scribe

Verify via Scribe API that there are no critical or high severity vulnerabilities in the target artifact (container image, folder, etc.).

tip

Rule requires the Scribe API to be enabled. Ensure that you provide the Scribe Token to the valint utility.

tip

Signed Evidence for this rule IS NOT required by default but is recommended.

warning

Rule requires evaluation with a target. Without one, it will be disabled unless the --all-evidence flag is provided.

info

Rule is scoped by product and target.

Usage example

uses: api/scribe-api-cve@v2
with:
superset:
cve:
max: 0
severity: 6

Mitigation

Ensure that all critical or high severity vulnerabilities are addressed before delivering the product.

Description

This rule ensures that there are no critical or high severity vulnerabilities in any deliverable component of the product by verifying via the Scribe API.

Evidence Requirements

FieldValue
filter-by['product', 'target']
signedFalse
content_body_typecyclonedx-json
target_typecontainer

Input Definitions

ParameterTypeRequiredDescription
supersetobjectFalseThe superset of CVEs to check for, including the following format [cve: [max: int, severity: int]]