mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
* Add failing test for missing versions Signed-off-by: Dan Luhring <dan+github@luhrings.com> * Look through all named sections for version Signed-off-by: Dan Luhring <dan+github@luhrings.com> * Consistent installation of yajsv Signed-off-by: Dan Luhring <dan+github@luhrings.com> * Adjust output text for test assertion Signed-off-by: Dan Luhring <dan+github@luhrings.com>
8 lines
306 B
Makefile
8 lines
306 B
Makefile
.DEFAULT_GOAL := validate-schema
|
|
.PHONY: validate-schema
|
|
validate-schema:
|
|
go run ../../main.go ubuntu:latest -vv -o cyclonedx > bom.xml
|
|
xmllint --noout --schema ./cyclonedx.xsd bom.xml
|
|
go run ../../main.go ubuntu:latest -vv -o cyclonedx-json > bom.json
|
|
../../.tmp/yajsv -s bom-1.3.schema.json bom.json
|