mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 16:33:21 +01:00
* migrate to binny and taskfile Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * update binny to not require github token Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * added support for automatically building snapshots Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * detect source changes for snapshot builds Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * fail workflow explicitly when snapshot cache restoral fails Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> * match snapshot restoral paths Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com> --------- Signed-off-by: Alex Goodman <wagoodman@users.noreply.github.com>
8 lines
320 B
Makefile
8 lines
320 B
Makefile
.DEFAULT_GOAL := validate-schema
|
|
.PHONY: validate-schema
|
|
validate-schema:
|
|
go run ../../cmd/syft/main.go ubuntu:latest -vv -o cyclonedx > bom.xml
|
|
xmllint --noout --schema ./cyclonedx.xsd bom.xml
|
|
go run ../../cmd/syft/main.go ubuntu:latest -vv -o cyclonedx-json > bom.json
|
|
../../.tool/yajsv -s cyclonedx.json bom.json
|