enable trusted builds to do their thing
This commit is contained in:
parent
35c66c7b76
commit
e66bb6bace
1 changed files with 7 additions and 0 deletions
|
@ -27,6 +27,13 @@ type Context struct {
|
||||||
|
|
||||||
func setup(c *Context) error {
|
func setup(c *Context) error {
|
||||||
var err error
|
var err error
|
||||||
|
var opts = parser.DefaultOpts
|
||||||
|
|
||||||
|
// if repository is trusted the build may specify
|
||||||
|
// custom volumes, networking and run in trusted mode.
|
||||||
|
if c.Repo.Trusted {
|
||||||
|
opts = &parser.Opts{true, true, true}
|
||||||
|
}
|
||||||
|
|
||||||
// inject the matrix parameters into the yaml
|
// inject the matrix parameters into the yaml
|
||||||
injected := inject.Inject(string(c.Yaml), c.Build.Environment)
|
injected := inject.Inject(string(c.Yaml), c.Build.Environment)
|
||||||
|
|
Loading…
Reference in a new issue