diff --git a/package.json b/package.json index d8147648..5f82e3a9 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "venona", - "version": "0.18.0", + "version": "0.19.0", "description": "Codefresh agent to run on Codefresh's runtime environment and execute pipeline", "main": "index.js", "scripts": { diff --git a/venonactl/pkg/codefresh/cfapi.go b/venonactl/pkg/codefresh/cfapi.go index 757a7e26..acb9c266 100644 --- a/venonactl/pkg/codefresh/cfapi.go +++ b/venonactl/pkg/codefresh/cfapi.go @@ -105,13 +105,20 @@ func (a *api) Sign() (*certs.ServerCert, error) { AltName: certExtraSANs, CSR: serverCert.Csr, }) + if err != nil { + a.logger.Debug("Failed to sign certificate") + return nil, err + } + a.logger.Debug("Certificate was signed") respBodyReaderAt := bytes.NewReader(byteArray) zipReader, err := zip.NewReader(respBodyReaderAt, int64(len(byteArray))) if err != nil { + a.logger.Debug("Failed to create zip reader from given certificate") return nil, err } for _, zf := range zipReader.File { + a.logger.Debug("Reading file ", "name", zf.Name) buf := new(bytes.Buffer) src, _ := zf.Open() defer src.Close()