Skip to content

feat: add skip-roxctl-scan for scratch PKO images - #866

Open
MitaliBhalla wants to merge 1 commit into
openshift:masterfrom
MitaliBhalla:feat/skip-roxctl-scan
Open

feat: add skip-roxctl-scan for scratch PKO images#866
MitaliBhalla wants to merge 1 commit into
openshift:masterfrom
MitaliBhalla:feat/skip-roxctl-scan

Conversation

@MitaliBhalla

Copy link
Copy Markdown
Contributor

Summary

  • Add optional skip-roxctl-scan on docker-build-oci-ta, same pattern as skip-preflight-cert-check
  • ACS roxctl-scan (replaced Clair on 2026-08-28) fails on FROM-scratch PKO/package images
  • skip-checks: true is the wrong workaround: it disables clamav/SAST/RPM scans and Enterprise Contract then fails

Test plan

Made with Cursor

ACS/roxctl-scan fails on FROM-scratch package images (YAML only, no OS).
skip-checks is too broad: it also drops clamav, SAST, and RPM signature
scans and then Enterprise Contract fails. Mirror skip-preflight-cert-check
with a roxctl-only skip so operators can keep the other image checks.

Co-authored-by: Cursor <cursoragent@cursor.com>
@coderabbitai

coderabbitai Bot commented Aug 31, 2026

Copy link
Copy Markdown

Important

Review skipped

Review was skipped due to path filters

⛔ Files ignored due to path filters (2)
  • pipelines/docker-build-oci-ta/README.md is excluded by none and included by none
  • pipelines/docker-build-oci-ta/pipeline.yaml is excluded by none and included by none

CodeRabbit blocks several paths by default. You can override this behavior by explicitly including those paths in the path filters. For example, including **/dist/** will override the default block on the dist directory, by removing the pattern from both the lists.

⚙️ Run configuration

Configuration used: Repository YAML (base), Central YAML (inherited)

Review profile: CHILL

Plan: Enterprise

Run ID: c7fa0523-1ee0-406a-96fa-70c72b45a130

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

Use the checkbox below for a quick retry:

  • 🔍 Trigger review

Comment @coderabbitai help to get the list of available commands.

@openshift-ci
openshift-ci Bot requested review from dustman9000 and psav August 31, 2026 08:03
@openshift-ci

openshift-ci Bot commented Aug 31, 2026

Copy link
Copy Markdown
Contributor

[APPROVALNOTIFIER] This PR is NOT APPROVED

This pull-request has been approved by: MitaliBhalla
Once this PR has been reviewed and has the lgtm label, please assign ajpantuso for approval. For more information see the Code Review Process.

The full list of commands accepted by this bot can be found here.

Details Needs approval from an approver in each of these files:

Approvers can indicate their approval by writing /approve in a comment
Approvers can cancel approval by writing /approve cancel in a comment

MitaliBhalla added a commit to MitaliBhalla/rbac-permissions-operator that referenced this pull request Aug 31, 2026
CodeRabbit was right that skip-checks also dropped clamav, SAST, and RPM
signature scans, which is what failed Enterprise Contract (8 EC failures).
Use skip-roxctl-scan from openshift/boilerplate#866 instead, and pin the
pipeline git resolver to that commit until it lands on master.

Co-authored-by: Cursor <cursoragent@cursor.com>
- name: skip-roxctl-scan
default: "false"
type: string
description: Skip ACS/roxctl-scan only (keep clamav, SAST, RPM signature, etc.). Use for FROM-scratch PKO/package images that have no OS for ACS to scan. Valid values are false and true.

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Shouldn't ACS/roxctl just gracefully handle when there is an inability to scan?

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks like it's being solved with https://redhat.atlassian.net/browse/KONFLUX-15651

@joshbranham

Copy link
Copy Markdown
Contributor

/hold

@openshift-ci openshift-ci Bot added the do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command. label Aug 31, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

do-not-merge/hold Indicates that a PR should not merge because someone has issued a /hold command.

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants