Skip to content

Conversation

@jeffrey778zhan
Copy link
Contributor

@jeffrey778zhan jeffrey778zhan commented Aug 23, 2021

What Changed?

  • Added error handling at the language level for cyclonedx reporting
  • Refactored cycloned spec version check

How was it tested?

  • Tested a build which threw an exception for one language dependency and ensured dependencies of other languages were still captured

"Incorrect Cyclone Version Specified: #{@config['spec_version']}." \
" Should be exactly 1.2 or 1.3"
end
component.delete(:properties) if @config['spec_version'] == "1.2"
Copy link
Contributor Author

Choose a reason for hiding this comment

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

Guaranteed valid spec version at this point

Copy link
Contributor

@joshuaostrom-cb joshuaostrom-cb left a comment

Choose a reason for hiding this comment

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

LGTM

@jeffrey778zhan jeffrey778zhan merged commit a4ebbf5 into master Aug 23, 2021
@jeffrey778zhan jeffrey778zhan deleted the jeffreyz/error_handling_cyclonedx_languages branch August 23, 2021 19:31
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Development

Successfully merging this pull request may close these issues.

2 participants