MCPcopy Create free account
hub / github.com/docker/buildx / applyEnvWithDepth

Function applyEnvWithDepth

policy/validate.go:815–827  ·  view source on GitHub ↗
(inp *Input, env Env, depth int)

Source from the content-addressed store, hash-verified

813}
814
815func applyEnvWithDepth(inp *Input, env Env, depth int) {
816 if inp == nil {
817 return
818 }
819 inp.Env = env
820 inp.Env.Depth = depth
821 if inp.Image == nil || inp.Image.Provenance == nil || len(inp.Image.Provenance.Materials) == 0 {
822 return
823 }
824 for i := range inp.Image.Provenance.Materials {
825 applyEnvWithDepth(&inp.Image.Provenance.Materials[i], env, depth+1)
826 }
827}
828
829func AddUnknowns(req *gwpb.ResolveSourceMetaRequest, unk []string) error {
830 return AddUnknownsWithLogger(nil, req, unk)

Callers 2

CheckPolicyMethod · 0.85
CheckCapsMethod · 0.85

Calls

no outgoing calls

Tested by

no test coverage detected

Used in the wild real call sites across dependent graphs

searching dependent graphs…