Skip to content

Log audit errors when partial results are allowed (v2 backport)#1353

Closed
Jordanh1996 wants to merge 1 commit into
masterfrom
fix/log-scanner-errors-when-partial-results-v2
Closed

Log audit errors when partial results are allowed (v2 backport)#1353
Jordanh1996 wants to merge 1 commit into
masterfrom
fix/log-scanner-errors-when-partial-results-v2

Conversation

@Jordanh1996

Copy link
Copy Markdown

Summary

  • Backport of Log audit errors when fail_upon_any_scanner_error is disabled #1352 to master (v2)
  • When partial results are allowed (allow_partial_results / FailUponAnyScannerError disabled), include the underlying scanner error in the warn log instead of only a generic message
  • Avoid double-logging fix errors by not embedding err in the message at the fix-vulnerabilities call site

Test plan

  • Run scan-repository with partial results allowed and a failing audit; confirm the warn line includes the scanner error text and exit code stays 0
  • Run with partial results disabled; confirm behavior is unchanged (command fails on scanner error)

Made with Cursor

When allow_partial_results is enabled, frogbot continued without failing
but only logged a generic warning, hiding the underlying audit error.
Include the actual error in the warning so pipelines remain debuggable.

Backport of #1352 for master.

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

Copy link
Copy Markdown
Author

Closing — reopening from fork (Jordanh1996/frogbot).

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.

2 participants