Comments (6)
Thank you for the error report, @uselab .
Could you drop in the composer.lock
you used?
If this bug affects your workflow, you might downgrade cyclonedx-php-composer 3.8 until a fix is ready.
Alternatively you could have cyclonedx-php-composer output as JSON - which might not have these strict validation rules.
Sorry for the inconvenience
from cyclonedx-php-composer.
issue probably is caused by malformed input in the original composer.json
or composer.lock
file
caused by "PEAR_Exception" -> https://github.com/pear/PEAR_Exception/blob/master/composer.json
affected versions of cyclonedx-php-composer : 3.9
since the ExternalReferences are read from composer packages and put into XML - JSON not affected
how to reproduce:
- have malformed URI used as a ExtRef
- unittests possible: yes
- demo / integration tests possible: yes
issue was forwarded to core lib: CycloneDX/cyclonedx-php-library#35
from cyclonedx-php-composer.
Hi @jkowalleck,
Sorry about the late reply, I added the lock file inside the zip.
Not sure if you still need it seeing you already found the same issue it seems
composer.zip
We have a temporary work around by adding --no-validate, seeing the file is accepted by the rest of our pipeline.
Once a fix is in place and released we will update and remove the --no-validate
from cyclonedx-php-composer.
tried to fix the root cause in upstream via pear/PEAR_Exception#12
from cyclonedx-php-composer.
Thank you very much for reporting the issue, @uselab
The issue was reproduced and got fixed in v3.9.1 - which was released just a minute ago.
Could you update and see if a valid XML could be generated?
from cyclonedx-php-composer.
Hi @jkowalleck ,
tested and works like a charm now!
from cyclonedx-php-composer.
Related Issues (20)
- perf: generator/iterator extractor without `iterator_to_array`
- component's `reference`
- [BUG] SBOM generation does not find right purl with wordpress composer installation HOT 7
- upload test results to codacy
- typo "compoer" -> "composer"
- support CDX 1.5
- render `metadata.lifecycles`
- render property `cdx:reproducible`
- support composer v2.6.0
- add info to SBOM results: which version of `composer` was used in the process
- Populate `metadata.tools[].version` when installed globally
- [TRACK] CycloneDX SBOM in `composer`
- [TRACK] openSSF cii-best-practices badge shows wrong values HOT 1
- [BUG] hashes on wrong element
- feat: dependency graph with virtual packages
- feat: document platform dependencies
- default to CycloneDX 1.5 HOT 1
- feat: set dev-dependencies `component.scope` to `excluded`
- mark licenses as "declared" HOT 1
- feat: `component.tags` based on composer keywords
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from cyclonedx-php-composer.