From 902625cd70345fb5e4586223eae1b459b2577906 Mon Sep 17 00:00:00 2001 From: arewm Date: Mon, 4 Mar 2024 14:57:07 -0500 Subject: [PATCH] fix: The clair-scan task is not required for FBC pipelines In https://github.com/release-engineering/rhtap-ec-policy/pull/19, I removed the requirement of multiple checks for FBC pipelines due to their special nature where the images produced are not themsleves pushed, instead metadata is extracted from it and published to the index for OLM. Therefore, we no longer need to require clair-scan images to be present for these pipelines either. Signed-off-by: arewm --- pkg/utils/build/task_results.go | 3 +++ 1 file changed, 3 insertions(+) diff --git a/pkg/utils/build/task_results.go b/pkg/utils/build/task_results.go index 68babd151..3d20e7440 100644 --- a/pkg/utils/build/task_results.go +++ b/pkg/utils/build/task_results.go @@ -44,6 +44,9 @@ func ValidateBuildPipelineTestResults(pipelineRun *pipeline.PipelineRun, c crcli if taskName == "inspect-image" && !strings.HasPrefix(strings.ToLower(componentName), "fbc-") { continue } + if taskName == "clair-scan" && !strings.HasPrefix(strings.ToLower(componentName), "fbc-") { + continue + } results, err := fetchTaskRunResults(c, pipelineRun, taskName) if err != nil { return err