SAP / project-piper-action

CI/CD tooling for the SAP Ecosystem, integrated with GitHub Actions
38 stars 15 forks source link

Turn off SSL verification for piper? #205

Closed milkotodorov closed 2 months ago

milkotodorov commented 2 months ago

Using local runner throws the following error:

/tmp/runner/work/***/v1_367_0/piper version --stageName Init
time="2024-06-27T16:36:32Z" level=info msg="Version 8eeba2d0055a7c645a60de0466d1ed21194b0c70" library=SAP/jenkins-library
piper-version:
    commit: "8eeba2d0055a7c645a60de0466d1ed21194b0c70"
    tag: "<n/a>"
List Artifacts - Attempt 1 of 5 failed with error: self-signed certificate in certificate chain
List Artifacts - Attempt 2 of 5 failed with error: self-signed certificate in certificate chain
List Artifacts - Attempt 3 of 5 failed with error: self-signed certificate in certificate chain
List Artifacts - Attempt 4 of 5 failed with error: self-signed certificate in certificate chain
List Artifacts - Attempt 5 of 5 failed with error: self-signed certificate in certificate chain
Error: List Artifacts failed: self-signed certificate in certificate chain

Can one somehow turn off the SSL verification?

milkotodorov commented 2 months ago

This issue goes more for piper itself. Closing it here.

pme-sap commented 2 months ago

AFAIK the error message comes from the nodejs implementation of the project-piper-action not from the called piper binary. A workaround is to set NODE_OPTIONS="--use-openssl-ca" in the environment of the runner or the action call. Maybe it's possible in the implementation of the project-piper-action to activate the usage of the OpenSSL CAs?