Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(1.6): extend EvidenceOccurrence #159

Merged
merged 1 commit into from May 14, 2024

Conversation

mcombuechen
Copy link
Contributor

This extends type EvidenceOccurrence with additional fields from the 1.6 spec. Logic has been added to the conversion to make sure they don't show up in lower spec versions.

Closes #156.

@mcombuechen mcombuechen requested a review from a team as a code owner May 9, 2024 07:10
convert.go Show resolved Hide resolved
convert.go Show resolved Hide resolved
@nscuro nscuro added enhancement New feature or request spec/1.6 labels May 9, 2024
@mcombuechen mcombuechen marked this pull request as draft May 12, 2024 16:02
Copy link
Contributor Author

@mcombuechen mcombuechen left a comment

Choose a reason for hiding this comment

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

@nscuro thanks for your change request. While applying the changes, I got some linter warning that suggested the conversion sub-routine was not really doing what it was supposed to. I added a unit test, and really it was broken. Changed the signature, now it's working.

I have some thoughts on the type definitions of LineNumber and Offset, maybe you have a good idea how we can solve the challenges that come with these numbers.

convert_test.go Outdated Show resolved Hide resolved
Closes CycloneDX#156.

Signed-off-by: Maximilian Combüchen <max.combuchen@snyk.io>
@mcombuechen mcombuechen requested a review from nscuro May 13, 2024 12:58
@mcombuechen mcombuechen marked this pull request as ready for review May 13, 2024 12:59
@nscuro nscuro merged commit 982cd13 into CycloneDX:spec/1.6 May 14, 2024
2 of 3 checks passed
@mcombuechen mcombuechen deleted the 156-evidence-occurrence branch May 15, 2024 06:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request spec/1.6
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants