generated from oracle/template-repo
-
Notifications
You must be signed in to change notification settings - Fork 23
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
chore: improve cyclonedx-mvn bom file check to include files with cus… #524
Merged
Merged
Changes from all commits
Commits
Show all changes
15 commits
Select commit
Hold shift + click to select a range
3660da7
chore: improve cyclonedx-mvn bom file check to include files with cus…
benmss c1ad105
chore: added error output for multiple sbom discovery; added unit tes…
benmss 1195667
chore: refine newly added test
benmss bcda1ec
chore: pruned cyclonedxmaven constructor input string parameters in t…
benmss 8349a89
chore: update integration tests to use latest maven commit
benmss 6b92419
chore: make e2e comparisons of remote paths ignore '.git'
benmss b575dd9
chore: update maven commit in docker tests
benmss f738040
chore: revert .git handling in e2e comparison
benmss 0190856
chore: remove .git from expected results
benmss eec1a66
chore: allow only one custom named sbom file per child directory
benmss 512b5aa
chore: update tests for named sboms
benmss 2a1e8b8
chore: addressed PR feedback
benmss 819304f
chore: update variable name to be more descriptive
benmss 755ef04
chore: separate acceptance of named vs default cyclonedx-maven sboms …
benmss 8e957d6
chore: revert, so named cyclonedx-maven sbom files are still preferred
benmss File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,8 @@ | ||
# Copyright (c) 2022 - 2022, Oracle and/or its affiliates. All rights reserved. | ||
# Copyright (c) 2022 - 2023, Oracle and/or its affiliates. All rights reserved. | ||
# Licensed under the Universal Permissive License v 1.0 as shown at https://oss.oracle.com/licenses/upl/. | ||
|
||
target: | ||
id: apache/maven | ||
branch: master | ||
digest: 6767f2500f1d005924ccff27f04350c253858a84 | ||
digest: 3fc399318edef0d5ba593723a24fff64291d6f9b | ||
path: https://github.com/apache/maven.git |
2 changes: 2 additions & 0 deletions
2
..._analyzer/cyclonedx/resources/sbom_name_tests/multiple_named_sboms/target/custom_bom.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
2 changes: 2 additions & 0 deletions
2
...nalyzer/cyclonedx/resources/sbom_name_tests/multiple_named_sboms/target/custom_bom_2.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
{ | ||
} |
116 changes: 116 additions & 0 deletions
116
...ncy_analyzer/cyclonedx/resources/sbom_name_tests/single_named_sbom/target/custom_bom.json
This file contains 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,116 @@ | ||
{ | ||
"bomFormat" : "CycloneDX", | ||
"specVersion" : "1.4", | ||
"serialNumber" : "urn:uuid:53576e41-735f-4da4-9249-7f63234ebd94", | ||
"version" : 1, | ||
"metadata" : { | ||
"timestamp" : "2023-10-23T00:57:55Z", | ||
"tools" : [ | ||
{ | ||
"vendor" : "OWASP Foundation", | ||
"name" : "CycloneDX Maven plugin", | ||
"version" : "2.6.2", | ||
"hashes" : [ | ||
{ | ||
"alg" : "MD5", | ||
"content" : "ff29fc50797fce0b33058a6b2b283f64" | ||
}, | ||
{ | ||
"alg" : "SHA-1", | ||
"content" : "597e59ebf21c3b8bfb1faeb622569df324eca956" | ||
}, | ||
{ | ||
"alg" : "SHA-256", | ||
"content" : "3cf9130fcac45a7beb6df2ae9c3fc9c062d1fddd0731d6a302968586f0aa586e" | ||
}, | ||
{ | ||
"alg" : "SHA-384", | ||
"content" : "8111a6788c959305af23daecbc79defd4478c1e274cba65bfe860e09b30cd9fe29822d5d3d3eea608e4926a9418f92e3" | ||
}, | ||
{ | ||
"alg" : "SHA-512", | ||
"content" : "2bea87b7bcd70897bf46a28a806b6064a6708d0a45e884e1ceddc25f97ca7bdf4ed190f30d9a28cc9416b6c66176d518c5876fd25bc06bdcb00d39367215e56e" | ||
}, | ||
{ | ||
"alg" : "SHA3-256", | ||
"content" : "f0f7b771749955e7898665c2fff8f4f2cd734d9cbe4d29883292db772f1be00e" | ||
}, | ||
{ | ||
"alg" : "SHA3-384", | ||
"content" : "a87d4c18bac4d48a46c0b8611ab92934e457fcd55bd4d39dbc9c4e5044d2736d3bda991c43d67b0987eddcf4c88510ff" | ||
}, | ||
{ | ||
"alg" : "SHA3-512", | ||
"content" : "90c38f168600787fc90b7e37e743b386b7296bceb10152190de6e30e0f251da3e01698d1b1e11ad84f207532b5a0743aac105f3c5006ff4607d21f30c9ea779f" | ||
} | ||
] | ||
} | ||
], | ||
"component" : { | ||
"group" : "com.example", | ||
"name" : "cyclonedx-test", | ||
"version" : "1.0-SNAPSHOT", | ||
"licenses" : [ ], | ||
"purl" : "pkg:maven/com.example/[email protected]?type=jar", | ||
"type" : "library", | ||
"bom-ref" : "pkg:maven/com.example/[email protected]?type=jar" | ||
} | ||
}, | ||
"components" : [ | ||
{ | ||
"group" : "com.example", | ||
"name" : "cyclonedx-test-dep", | ||
"version" : "1", | ||
"scope" : "optional", | ||
"hashes" : [ | ||
{ | ||
"alg" : "MD5", | ||
"content" : "c7b63da4c25c163825cca671e7899fbe" | ||
}, | ||
{ | ||
"alg" : "SHA-1", | ||
"content" : "5aa25ee1bf1ffd60b76f16fe0a8edd76f870958c" | ||
}, | ||
{ | ||
"alg" : "SHA-256", | ||
"content" : "c38cef49f7676227c1d4cf98e59b96f7a6bf33704d10314d83d682acd2b47d10" | ||
}, | ||
{ | ||
"alg" : "SHA-384", | ||
"content" : "7afa5feaa7d3a4ca4ecba7d4bd1b093e75be2ee2a25eefbc5fd90eb8b9a4712fa1a720265765a28d858fc64412dbed2b" | ||
}, | ||
{ | ||
"alg" : "SHA-512", | ||
"content" : "bf69097c4c0d165e5521a918ee79c1e5e211e9e74410d48042994c4c6cf5788cf4d62129e7c0d7a22294835178398c91c31929ce6861068c71ea14059f6f6e56" | ||
}, | ||
{ | ||
"alg" : "SHA3-256", | ||
"content" : "ba7656644f127c4b10d53c777aee2ed023ac3caf7f420ecb4ca48a909d775a17" | ||
}, | ||
{ | ||
"alg" : "SHA3-384", | ||
"content" : "1244f326a9b0b165b27b0061f1fcdf2580e3b64681cc3f09df3afd9a4526ab5491a20213a8fb9edcc671fbae8b51a010" | ||
}, | ||
{ | ||
"alg" : "SHA3-512", | ||
"content" : "e6020e5b9adbe61f1c53e575ab0c51b9eef7dbea3dbe21f970607002ed0373b322c893433fd429b04acde5eb58e1d9ca356a0ae9b6c485d239174f642082cb7a" | ||
} | ||
], | ||
"purl" : "pkg:maven/com.example/cyclonedx-test-dep@1?type=jar", | ||
"type" : "library", | ||
"bom-ref" : "pkg:maven/com.example/cyclonedx-test-dep@1?type=jar" | ||
} | ||
], | ||
"dependencies" : [ | ||
{ | ||
"ref" : "pkg:maven/com.example/[email protected]?type=jar", | ||
"dependsOn" : [ | ||
"pkg:maven/com.example/cyclonedx-test-dep@1?type=jar" | ||
] | ||
}, | ||
{ | ||
"ref" : "pkg:maven/com.example/cyclonedx-test-dep@1?type=jar", | ||
"dependsOn" : [ ] | ||
} | ||
] | ||
} |
Oops, something went wrong.
Oops, something went wrong.
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.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
What would happen if there is multiple
*.json
files in the "children"taget
directories, given that there exist a custom-named SBOM file in the top path?