From bab98502becd1d51faafdc9f500a39c2d9b433ce Mon Sep 17 00:00:00 2001 From: Alex Gustafsson Date: Sun, 29 Dec 2024 17:58:14 +0100 Subject: [PATCH] WIP --- tools/vulndb/internal/oci/push.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/vulndb/internal/oci/push.go b/tools/vulndb/internal/oci/push.go index c1a6630..99cb6bd 100644 --- a/tools/vulndb/internal/oci/push.go +++ b/tools/vulndb/internal/oci/push.go @@ -46,13 +46,15 @@ func PushArtifact(ctx context.Context, path string, username string, password st return err } + manifestDescriptor.Annotations["org.opencontainers.image.source"] = "https://github.com/AlexGustafsson/cupdate" + tag := "latest" if err = fs.Tag(ctx, manifestDescriptor, tag); err != nil { return err } reg := "ghcr.io" - repo, err := remote.NewRepository(reg + "/alexgustafsson/cupdate") + repo, err := remote.NewRepository(reg + "/alexgustafsson/cupdate-vulndb") if err != nil { return err }