diff --git a/drone/exec.go b/drone/exec.go index f7b6cbd..3779f28 100644 --- a/drone/exec.go +++ b/drone/exec.go @@ -142,6 +142,8 @@ func execCmd(c *cli.Context) error { Repo drone.Repo `json:"repo"` Build drone.Build `json:"build"` Job drone.Job `json:"job"` + Netrc drone.Netrc `json:"netrc"` + Keys drone.Key `json:"keys"` Config string `json:"config"` }{ Repo: drone.Repo{ @@ -169,9 +171,14 @@ func execCmd(c *cli.Context) error { if err != nil { return err } - payload.Workspace.Keys = &drone.Key{ + payload.Keys = drone.Key{ Private: string(key), } + payload.Netrc = drone.Netrc{ + Machine: "", + Login: "", + Password: "", + } } if len(proj) != 0 {