mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 07:40:48 -08:00
feat: replace TinyGo with standard Go for WebAssembly modules (#8496)
This commit is contained in:
@@ -73,12 +73,12 @@ func (a Artifact) Inspect(ctx context.Context) (artifact.Reference, error) {
|
||||
return artifact.Reference{}, xerrors.Errorf("failed to store blob (%s) in cache: %w", cacheKey, err)
|
||||
}
|
||||
|
||||
var artifactType artifact.Type
|
||||
var artifactType types.ArtifactType
|
||||
switch format {
|
||||
case sbom.FormatCycloneDXJSON, sbom.FormatCycloneDXXML, sbom.FormatAttestCycloneDXJSON, sbom.FormatLegacyCosignAttestCycloneDXJSON:
|
||||
artifactType = artifact.TypeCycloneDX
|
||||
artifactType = types.TypeCycloneDX
|
||||
case sbom.FormatSPDXTV, sbom.FormatSPDXJSON:
|
||||
artifactType = artifact.TypeSPDX
|
||||
artifactType = types.TypeSPDX
|
||||
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user