lint trusted vs untrusted plugins
This commit is contained in:
parent
8c655d600d
commit
46989c05f0
1 changed files with 2 additions and 4 deletions
|
@ -1,8 +1,6 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"encoding/base64"
|
|
||||||
"fmt"
|
|
||||||
"path/filepath"
|
"path/filepath"
|
||||||
|
|
||||||
common "github.com/drone/drone/pkg/types"
|
common "github.com/drone/drone/pkg/types"
|
||||||
|
@ -47,7 +45,7 @@ func setup(c *Context) error {
|
||||||
|
|
||||||
// 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)
|
||||||
c.Conf, err = parser.ParseSingle(injected, opts)
|
c.Conf, err = parser.ParseSingle(injected, &opts)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return err
|
return err
|
||||||
}
|
}
|
||||||
|
@ -153,7 +151,7 @@ func runSteps(c *Context, steps map[string]*common.Step) (int, error) {
|
||||||
conf.Cmd = toCommand(c, step)
|
conf.Cmd = toCommand(c, step)
|
||||||
|
|
||||||
// append global environment variables
|
// append global environment variables
|
||||||
conf.Env = append(conf.Env, c.Env)
|
conf.Env = append(conf.Env, c.Env...)
|
||||||
|
|
||||||
info, err := run(c.client, conf, step.Pull)
|
info, err := run(c.client, conf, step.Pull)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
|
|
Loading…
Reference in a new issue