Merge pull request #1628 from cpuguy83/policy_file

Support for passing through raw buildkit policies
This commit is contained in:
Justin Chadwell
2023-05-09 11:50:10 +01:00
committed by GitHub
6 changed files with 171 additions and 117 deletions

View File

@ -128,6 +128,11 @@ func (o *buildOptions) toControllerOptions() (*controllerapi.BuildOptions, error
}
}
opts.SourcePolicy, err = build.ReadSourcePolicy()
if err != nil {
return nil, err
}
inAttests := append([]string{}, o.attests...)
if o.provenance != "" {
inAttests = append(inAttests, buildflags.CanonicalizeAttest("provenance", o.provenance))