Problem Statement:
While executing a pipeline step that appends SSL cert, a customer may run into an error similar to below.
[drone-github-action/action] ::error::self signed certificate in certificate chain
time=“2023-04-19T21:51:04Z” level=debug msg=“exit with FAILURE
: 1”
[drone-github-action/action] Failure - actions/setup-python@v2
time=“2023-04-19T21:51:04Z” level=debug msg=“exit with FAILURE
: 1”
Solution:
This can be resolved by adding an environmental variable in the step either as a stage variable:
Or in the step itself:
You will need to add this variable:
export NODE_TLS_REJECT_UNAUTHORIZED=‘0’
Additional details can be found here:javascript - nodejs - error self signed certificate in certificate chain - Stack Overflow