Skip to content

MLE-32332: pass pinned UBI base image to BlackDuck scan job - #479

Merged
vitalykorolev merged 2 commits into
developfrom
MLE-32332_pass-base-image-to-blackduck-scan
Sep 4, 2026
Merged

MLE-32332: pass pinned UBI base image to BlackDuck scan job#479
vitalykorolev merged 2 commits into
developfrom
MLE-32332_pass-base-image-to-blackduck-scan

Conversation

@vitalykorolev

Copy link
Copy Markdown
Collaborator

Description

Resolves the base image from the matching marklogic-deps Dockerfile's FROM line (so it always matches whatever is currently pinned) and passes it as BASE_IMAGE_TO_EXCLUDE, enabling the downstream pipeline's additional filtered scan that excludes base image components.

Checklist:

  • Owner:
  • JIRA_ID as part of branch/PR name

  • Rebase the branch with upstream

  • Squashed all commits into a single commit

  • Added Tests

  • Reviewer:
  • Reviewed Tests

  • Added to Release Wiki/Jira

Resolves the base image from the matching marklogic-deps Dockerfile's FROM line
(so it always matches whatever is currently pinned) and passes it as
BASE_IMAGE_TO_EXCLUDE, enabling the downstream pipeline's additional filtered
scan that excludes base image components.
Copilot AI lite review requested due to automatic review settings September 3, 2026 21:28

Copilot AI left a comment

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.

🟡 Changes recommended

The new deps Dockerfile selection logic does not correctly match ubi9-rootless-arm, so ARM rootless builds may derive the base image from the wrong Dockerfile.

Once you've addressed the issues Copilot identified, you can request another Copilot review.

Pull request overview

Updates the Jenkins pipeline’s BlackDuck scan trigger to dynamically read the pinned UBI base image from the appropriate marklogic-deps Dockerfile and pass it to the downstream scan job so it can run an additional “exclude base image components” scan.

Changes:

  • Determine the correct marklogic-deps Dockerfile based on dockerImageType and parse its first FROM image reference.
  • Pass the resolved base image value to the BlackDuck scan job via a new BASE_IMAGE_TO_EXCLUDE parameter.
  • Extend the scanWithBlackDuck() function header comment to describe the new behavior.
File summaries
File Description
Jenkinsfile Derives the pinned base image from the relevant deps Dockerfile and forwards it to the BlackDuck scan job.
Review details
  • Files reviewed: 1/1 changed files
  • Comments generated: 1
  • Review effort level: Lite

💡 Add a code-review agent skill or configure MCP servers for context-aware, tailored reviews. Learn more in the docs.

Comment thread Jenkinsfile Outdated
contains('ubi9-arm') doesn't match 'ubi9-rootless-arm' since it's not a
contiguous substring, so that variant incorrectly fell back to the non-arm
ubi9 deps Dockerfile. Check ubi9 and arm independently instead.
@vitalykorolev
vitalykorolev merged commit 0e7c53d into develop Sep 4, 2026
5 checks passed
@vitalykorolev
vitalykorolev deleted the MLE-32332_pass-base-image-to-blackduck-scan branch September 4, 2026 14:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants