From 7ae04a87c5fd332b88afb4dc779dddf9f3340ffa Mon Sep 17 00:00:00 2001 From: Benji Visser Date: Sun, 25 Jun 2023 13:35:06 -0600 Subject: [PATCH] [feat] pass image name to xeol.io API (#66) Signed-off-by: Benji Visser --- cmd/root.go | 1 + xeol/report/model.go | 1 + 2 files changed, 2 insertions(+) diff --git a/cmd/root.go b/cmd/root.go index 04a82f71..bdc5a7bc 100644 --- a/cmd/root.go +++ b/cmd/root.go @@ -309,6 +309,7 @@ func startWorker(userInput string, failOnEolFound bool, eolMatchDate time.Time) Packages: packages, Context: pkgContext, AppConfig: appConfig, + ImageName: sbom.Source.ImageMetadata.UserInput, }) if err := x.Send(); err != nil { errs <- fmt.Errorf("failed to send eol event: %w", err) diff --git a/xeol/report/model.go b/xeol/report/model.go index e3376d47..a36e9de1 100644 --- a/xeol/report/model.go +++ b/xeol/report/model.go @@ -10,4 +10,5 @@ type XeolEventPayload struct { Packages []pkg.Package Context pkg.Context AppConfig interface{} + ImageName string }