mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 15:50:15 -08:00
refactor: fix auth error handling (#7615)
Signed-off-by: knqyf263 <knqyf263@gmail.com>
This commit is contained in:
@@ -62,10 +62,7 @@ func NewFakeDB(t *testing.T, dbPath string, opts FakeDBOptions) *oci.Artifact {
|
||||
opt := ftypes.RegistryOptions{
|
||||
Insecure: false,
|
||||
}
|
||||
art, err := oci.NewArtifact("dummy", true, opt, oci.WithImage(img))
|
||||
require.NoError(t, err)
|
||||
|
||||
return art
|
||||
return oci.NewArtifact("dummy", true, opt, oci.WithImage(img))
|
||||
}
|
||||
|
||||
func ArchiveDir(t *testing.T, dir string) string {
|
||||
|
||||
Reference in New Issue
Block a user