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

Cannot generate SBOM manifest format for project with multiple licenses #15

Closed
llaville opened this issue Nov 18, 2024 · 0 comments
Closed
Assignees
Labels
bug Something isn't working

Comments

@llaville
Copy link
Owner

Summary

Cannot generate SBOM manifest format for project what are Composer license defined by an array of strings

Example with project : https://github.com/shipmonk-rnd/composer-dependency-analyser
See: https://github.com/shipmonk-rnd/composer-dependency-analyser/blob/1.7.0/composer.json#L4-L6

Expected behaviour

Be able to build sbom.json and/or sbom.xml manifests

Actual behaviour

When running following command:

box-manifest make build -r sbom.json -vvv

Got these results :

[notice]   RUN  Workflow with following stages >> build

[debug]   RUN  Starting stage "Bartlett\BoxManifest\Pipeline\BuildStage"

[critical]   RES  The stage "Bartlett\BoxManifest\Pipeline\BuildStage" has failed : CycloneDX\Core\Factories\LicenseFactory::makeFromString(): Argument #1 ($license) must be of type string, array given, called in /shared/backups/bartlett/box-manifest/src/Composer/Manifest/SbomManifestBuilder.php on line 133
[error]   RES  Workflow has failed
@llaville llaville added the bug Something isn't working label Nov 18, 2024
@llaville llaville self-assigned this Nov 18, 2024
llaville added a commit that referenced this issue Nov 19, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant