mirror of
https://github.com/anchore/syft.git
synced 2026-11-02 07:26:34 +01:00
feat: add --from flag, refactor source providers (#2610)
Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
@@ -0,0 +1,11 @@
|
||||
package internal
|
||||
|
||||
import (
|
||||
"strings"
|
||||
|
||||
"github.com/anchore/syft/syft/artifact"
|
||||
)
|
||||
|
||||
func ArtifactIDFromDigest(input string) artifact.ID {
|
||||
return artifact.ID(strings.TrimPrefix(input, "sha256:"))
|
||||
}
|
||||
Reference in New Issue
Block a user