From 5a3afbf839bd7fc625e29ce942effa0c9387329b Mon Sep 17 00:00:00 2001 From: Tonis Tiigi Date: Tue, 9 Sep 2025 11:08:00 -0700 Subject: [PATCH] build: set original url to attrs when replacef with input Save original URL so it can be picked up from provenance attestation. Signed-off-by: Tonis Tiigi --- build/opt.go | 2 ++ 1 file changed, 2 insertions(+) diff --git a/build/opt.go b/build/opt.go index ea63f5ecc..db5caf901 100644 --- a/build/opt.go +++ b/build/opt.go @@ -723,10 +723,12 @@ func processGitURL(url string, name string, target *client.SolveOpt, caps map[st if name == "context" { target.FrontendInputs["context"] = *st delete(target.FrontendAttrs, "context") + target.FrontendAttrs["input:context"] = url } else { inputName := "git_state_" + name target.FrontendInputs[inputName] = *st target.FrontendAttrs[name] = "input:" + inputName + target.FrontendAttrs["input:"+name] = url } return nil