mirror of
https://github.com/harness/drone.git
synced 2025-05-09 18:12:52 +08:00
enable trusted builds to do their thing
This commit is contained in:
parent
35c66c7b76
commit
e66bb6bace
@ -27,6 +27,13 @@ type Context struct {
|
||||
|
||||
func setup(c *Context) 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
|
||||
injected := inject.Inject(string(c.Yaml), c.Build.Environment)
|
||||
|
Loading…
Reference in New Issue
Block a user