Skip to main content

Restrict Disallowed Dependencies

Type: Rule
ID: sbom-disallow-dependencies
Source: v2/rules/sbom/blocklist-packages.yaml
Rego Source: blocklist-packages.rego
Labels: SBOM, Image, Blueprint

Verify the number of disallowed dependencies remains below the specified threshold.

note

This rule requires Image SBOM. See here for more details.

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: sbom/blocklist-packages@v2

Evidence Requirements

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

Rule Parameters (with)

ParameterDefault
blocklist[]
blocklisted_limit0