Skip to content

Feat: Expose Sonatype scan error handling inputs - #812

Merged
ModeSevenIndustrialSolutions merged 1 commit into
lfit:mainfrom
modeseven-lfit:feat/sonatype-lifecycle-error-handling
Jul 27, 2026
Merged

ModeSevenIndustrialSolutions merged 1 commit into
lfit:mainfrom
modeseven-lfit:feat/sonatype-lifecycle-error-handling

Conversation

@ModeSevenIndustrialSolutions

@ModeSevenIndustrialSolutions ModeSevenIndustrialSolutions commented Jul 26, 2026 •

Copy link
Copy Markdown
Contributor

Feat: Expose Sonatype scan error handling inputs

Problem

ONAP CLM scans via this workflow fail even though policy evaluation completes and the report uploads: pre-scan npm install builds populate the workspace with scaffolding templates containing placeholder package.json files (invalid JSON), the IQ CLI reports "Scanning errors encountered" with no scanId in the result file, and the Sonatype wrapper action fails the step. Example: onap/usecase-ui run.

Changes

New workflow_call inputs, all defaulting to current behaviour, passed through to sonatype-lifecycle-scan-action:

Input Purpose
ignore_scanning_errors Tolerate invalid/inaccessible files
ignore_system_errors Tolerate IO/network/server errors
fail_on_policy_warnings Gate on policy warnings
advanced_properties -D system properties, e.g. dirExcludes= folder exclusions

Also:

  • Default iq_cli_version bumped 2.4.2-01 → 2.13.0-01 (current Sonatype release; explicit numeric pin)
  • Scan action pin bumped v0.1.4 → v0.2.0 (f5b35cb), the release carrying the pass-through inputs — the upstream dependency this PR was drafted against is now satisfied, so the new inputs take effect

Validation

Downstream

onap/usecase-ui (and the other repositories on topic:backwards-support) will set ignore_scanning_errors: true — Gerrit change 146660, currently WIP pending a release of this workflow.

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

This PR enhances the reusable Sonatype Lifecycle (Nexus IQ) workflow by exposing additional scan error-handling and policy gating controls to downstream callers, while updating the pinned scan action and default IQ CLI version to versions that support these options.

Changes:

  • Add new workflow_call inputs (ignore_scanning_errors, ignore_system_errors, fail_on_policy_warnings, advanced_properties) and pass them through to the scan action.
  • Bump default iq_cli_version from 2.4.2-01 to 2.13.0-01.
  • Update the pinned lfreleng-actions/sonatype-lifecycle-scan-action reference from v0.1.4 to v0.2.0 (commit pin).

💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.

Scans of workspaces containing unparseable files (for example
scaffolding templates with placeholder package.json content
populated by pre-scan npm installs) fail the workflow even though
policy evaluation completes and the report uploads successfully.

Expose the scan action inputs needed to control this behaviour,
all defaulting to current behaviour:

- ignore_scanning_errors: tolerate invalid/inaccessible files
- ignore_system_errors: tolerate IO/network/server errors
- fail_on_policy_warnings: optionally gate on policy warnings
- advanced_properties: pass -D system properties to the CLI,
  enabling folder exclusions via dirExcludes/fileExcludes

Bump the default IQ CLI version from 2.4.2-01 to 2.13.0-01, the
current Sonatype release, and the scan action pin from v0.1.4 to
v0.2.0, the release carrying the pass-through inputs above.

Co-Authored-By: Claude <noreply@anthropic.com>
Signed-off-by: Matthew Watkins <mwatkins@linuxfoundation.org>

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

Pull request overview

Copilot reviewed 1 out of 1 changed files in this pull request and generated no new comments.

@ModeSevenIndustrialSolutions
ModeSevenIndustrialSolutions merged commit 0688b11 into lfit:main Jul 27, 2026
11 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants