chore: bump stereoscope to latest version (#1741)

Resolves reporting of GHSA-hw7c-3rfg-p46j

Signed-off-by: Weston Steimel <weston.steimel@anchore.com>
This commit is contained in:
Weston Steimel
2023-04-18 15:44:03 +00:00
committed by GitHub
parent 52b54bbad9
commit ee80349ea0
3 changed files with 31 additions and 24 deletions
+7
View File
@@ -4,6 +4,7 @@ import (
"flag"
"os"
"testing"
"time"
"github.com/stretchr/testify/assert"
"github.com/stretchr/testify/require"
@@ -144,6 +145,12 @@ func TestFileMetadataCataloger(t *testing.T) {
l := source.NewLocationFromImage(test.path, *ref.Reference, img)
if _, ok := actual[l.Coordinates]; ok {
redact := actual[l.Coordinates]
redact.ModTime = time.Time{}
actual[l.Coordinates] = redact
}
assert.Equal(t, test.expected, actual[l.Coordinates], "mismatched metadata")
})