Skip to content

Commit

Permalink
Make the SBOM checks opt-out
Browse files Browse the repository at this point in the history
Signed-off-by: Matt Moore <[email protected]>
  • Loading branch information
mattmoor committed Dec 13, 2023
1 parent 70d776a commit 2c579bd
Show file tree
Hide file tree
Showing 2 changed files with 6 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.tf
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ locals {
}

data "oci_exec_test" "check-sbom" {
for_each = local.archs
for_each = var.check_sbom ? local.archs : []
digest = apko_build.this.sboms[each.key].digest

# Run the supplied NTIA checker over the SBOM files mounted into the checker image in a readonly mode.
Expand Down
5 changes: 5 additions & 0 deletions variables.tf
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,11 @@ variable "default_annotations" {
description = "Default annotations to apply to this image."
}

variable "check_sbom" {
default = true
description = "Whether to run the NTIA conformance checker on the SBOMs we are attesting."
}

variable "sbom_checker" {
default = "cgr.dev/chainguard/ntia-conformance-checker:latest"
description = "The NTIA conformance checker image to use to validate SBOMs."
Expand Down

0 comments on commit 2c579bd

Please sign in to comment.