mirror of
https://github.com/anchore/syft.git
synced 2025-11-17 08:23:15 +01:00
19 lines
414 B
Go
19 lines
414 B
Go
package cyclonedxxml
|
|
|
|
import (
|
|
"github.com/CycloneDX/cyclonedx-go"
|
|
"github.com/anchore/syft/internal/formats/common/cyclonedxhelpers"
|
|
"github.com/anchore/syft/syft/sbom"
|
|
)
|
|
|
|
const ID sbom.FormatID = "cyclonedx-1-xml"
|
|
|
|
func Format() sbom.Format {
|
|
return sbom.NewFormat(
|
|
ID,
|
|
encoder,
|
|
cyclonedxhelpers.GetDecoder(cyclonedx.BOMFileFormatXML),
|
|
cyclonedxhelpers.GetValidator(cyclonedx.BOMFileFormatXML),
|
|
)
|
|
}
|