chore: pin fedora image for elf binary test (#3041)

Signed-off-by: Keith Zantow <kzantow@gmail.com>
This commit is contained in:
Keith Zantow 2024-07-15 12:37:09 -04:00 committed by GitHub
parent 37245a21cc
commit 278b72d39b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
2 changed files with 3 additions and 3 deletions

View File

@ -70,8 +70,8 @@ func Test_ELF_Package_Cataloger(t *testing.T) {
expected: []pkg.Package{
{
Name: "coreutils",
Version: "9.5-1.fc41",
PURL: "pkg:rpm/fedora/coreutils@9.5-1.fc41?distro=fedora-40",
Version: "9.5-3.fc41",
PURL: "pkg:rpm/fedora/coreutils@9.5-3.fc41?distro=fedora-40",
Locations: file.NewLocationSet(
file.NewLocation("/sha256sum").WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),
file.NewLocation("/sha1sum").WithAnnotation(pkg.EvidenceAnnotationKey, pkg.PrimaryEvidenceAnnotation),

View File

@ -1,4 +1,4 @@
FROM --platform=linux/amd64 fedora:41 as build
FROM --platform=linux/amd64 fedora:41@sha256:c05bf79137835bf5c521c58f8252d6031780ae865a0379ab57f412e0ac6b42aa as build
FROM scratch
COPY --from=build /bin/sha256sum /sha256sum