mirror of
https://github.com/anchore/grype
synced 2024-11-10 06:34:13 +00:00
24d5d4ffb2
* upgrade tool management Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update version file on release Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
14 lines
526 B
Makefile
14 lines
526 B
Makefile
.DEFAULT_GOAL := validate-schema
|
|
|
|
.PHONY: validate-schema
|
|
validate-schema: validate-schema-xml validate-schema-json
|
|
|
|
.PHONY: validate-schema-xml
|
|
validate-schema-xml:
|
|
go run ../../cmd/grype -c ../../test/grype-test-config.yaml ubuntu:latest -v -o cyclonedx-xml > bom.xml
|
|
xmllint --noout --schema ./cyclonedx.xsd bom.xml
|
|
|
|
.PHONY: validate-schema-json
|
|
validate-schema-json:
|
|
go run ../../cmd/grype -c ../../test/grype-test-config.yaml ubuntu:latest -v -o cyclonedx-json > bom.json
|
|
../../.tool/yajsv -s cyclonedx.json bom.json
|