-
-
Notifications
You must be signed in to change notification settings - Fork 11
Closed
Labels
bugSomething isn't workingSomething isn't working
Description
Describe the bug
PR #1349 creates multiple duplicate build-system external references for some projects.
To Reproduce
I do not have a shareable project that replicates the issue. However, with the current implementation, I've seen the plugin produce records like:
"externalReferences": [
{
"url": "https://some.build.system.internal/job/88",
"type": "build-system",
"comment": "as declared via cyclonedx-webpack-plugin config \"rootComponentBuildSystem\""
},
{
"url": "https://some.internal.vcs/org/repo",
"type": "vcs",
"comment": "as declared via cyclonedx-webpack-plugin config \"rootComponentVCS\""
},
{
"url": "https://some.build.system.internal/job/88",
"type": "build-system",
"comment": "as declared via cyclonedx-webpack-plugin config \"rootComponentBuildSystem\""
},
{
"url": "https://some.build.system.internal/job/88",
"type": "build-system",
"comment": "as declared via cyclonedx-webpack-plugin config \"rootComponentBuildSystem\""
},
{
"url": "https://some.build.system.internal/job/88",
"type": "build-system",
"comment": "as declared via cyclonedx-webpack-plugin config \"rootComponentBuildSystem\""
}
]Expected behavior
There should not be duplicate build-system external references.
Screenshots or output-paste
See above
Environment
- @cyclonedx/webpack-plugin version: 4.0.0
- webpack version: 5.95.0
- Node version: 22.12.0
- OS: osX
Additional context
Proposed fix #1355 - uses the same mechanism to prevent multiple entries as the external references for VCS so I assumed there would be no issue.
Contribution
- I am willing to provide a fix
- I will wait until somebody else fixes it
Reactions are currently unavailable
Metadata
Metadata
Assignees
Labels
bugSomething isn't workingSomething isn't working