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 <tonistiigi@gmail.com>
This commit is contained in:
Tonis Tiigi
2025-09-09 11:08:00 -07:00
parent c737e84f94
commit 5a3afbf839
+2
View File
@@ -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