mirror of
https://github.com/woodpecker-ci/woodpecker.git
synced 2025-09-17 22:19:38 +00:00
@@ -237,6 +237,14 @@ func (c *Compiler) Compile(conf *yaml_types.Workflow) (*backend_types.Config, er
|
|||||||
stepType = backend_types.StepTypePlugin
|
stepType = backend_types.StepTypePlugin
|
||||||
}
|
}
|
||||||
step := c.createProcess(name, container, stepType)
|
step := c.createProcess(name, container, stepType)
|
||||||
|
|
||||||
|
// inject netrc if it's a trusted repo or a trusted clone-plugin
|
||||||
|
if c.trustedPipeline || (container.IsPlugin() && container.IsTrustedCloneImage()) {
|
||||||
|
for k, v := range c.cloneEnv {
|
||||||
|
step.Environment[k] = v
|
||||||
|
}
|
||||||
|
}
|
||||||
|
|
||||||
stage.Steps = append(stage.Steps, step)
|
stage.Steps = append(stage.Steps, step)
|
||||||
}
|
}
|
||||||
|
|
||||||
|
Reference in New Issue
Block a user