Skip to content

Commit 57a72b0

Browse files
crazy-maxtonistiigi
authored andcommitted
provenance: handle input:context frontend opt to set config source
Signed-off-by: CrazyMax <[email protected]>
1 parent 80dc6b2 commit 57a72b0

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

solver/llbsolver/provenance/predicate.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -102,6 +102,8 @@ func NewPredicate(c *Capture) (*provenancetypes.ProvenancePredicateSLSA02, error
102102
contextKey := "context"
103103
if v, ok := args["contextkey"]; ok && v != "" {
104104
contextKey = v
105+
} else if v, ok := c.Args["input:context"]; ok && v != "" {
106+
contextKey = "input:context"
105107
}
106108

107109
if v, ok := args[contextKey]; ok && v != "" {

0 commit comments

Comments
 (0)