Repository navigation
Feat: Expose Sonatype scan error handling inputs - #812
Merged
ModeSevenIndustrialSolutions merged 1 commit intoJul 27, 2026
Merged
ModeSevenIndustrialSolutions merged 1 commit into
ModeSevenIndustrialSolutions merged 1 commit into
Conversation
ModeSevenIndustrialSolutions
force-pushed
the
feat/sonatype-lifecycle-error-handling
branch
from
July 27, 2026 14:36
3c32142 to
9310838
Compare
ModeSevenIndustrialSolutions
marked this pull request as ready for review
July 27, 2026 14:37
There was a problem hiding this comment.
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_callinputs (ignore_scanning_errors,ignore_system_errors,fail_on_policy_warnings,advanced_properties) and pass them through to the scan action. - Bump default
iq_cli_versionfrom2.4.2-01to2.13.0-01. - Update the pinned
lfreleng-actions/sonatype-lifecycle-scan-actionreference fromv0.1.4tov0.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>
ModeSevenIndustrialSolutions
force-pushed
the
feat/sonatype-lifecycle-error-handling
branch
from
July 27, 2026 14:43
9310838 to
a6249b8
Compare
ModeSevenIndustrialSolutions
enabled auto-merge
July 27, 2026 15:25
zxiiro
approved these changes
Jul 27, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
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 installbuilds populate the workspace with scaffolding templates containing placeholderpackage.jsonfiles (invalid JSON), the IQ CLI reports "Scanning errors encountered" with noscanIdin the result file, and the Sonatype wrapper action fails the step. Example: onap/usecase-ui run.Changes
New
workflow_callinputs, all defaulting to current behaviour, passed through tosonatype-lifecycle-scan-action:ignore_scanning_errorsignore_system_errorsfail_on_policy_warningsadvanced_properties-Dsystem properties, e.g.dirExcludes=folder exclusionsAlso:
iq_cli_versionbumped2.4.2-01→2.13.0-01(current Sonatype release; explicit numeric pin)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 effectValidation
onap/usecase-uiworkspace (details in Feat: Add error handling and CLI property inputs lfreleng-actions/sonatype-lifecycle-scan-action#153)2.13.0-01verified to run on Java 17 with all exposed flagszizmor --persona auditorzero findings;prekcleanDownstream
onap/usecase-ui(and the other repositories on topic:backwards-support) will setignore_scanning_errors: true— Gerrit change 146660, currently WIP pending a release of this workflow.