inject private params in PR if private
This commit is contained in:
parent
6af9d40c4b
commit
275e7a3e3d
1 changed files with 1 additions and 1 deletions
|
@ -107,7 +107,7 @@ func (w *worker) Execute(r *model.Request) {
|
|||
// append private parameters to the environment
|
||||
// variable section of the .drone.yml file, iff
|
||||
// this is not a pull request (for security purposes)
|
||||
if params != nil && len(r.Commit.PullRequest) == 0 {
|
||||
if params != nil && (r.Repo.Private || len(r.Commit.PullRequest) == 0) {
|
||||
for k, v := range params {
|
||||
script.Env = append(script.Env, k+"="+v)
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue