Pipeline Failure with Self Signed Cert in Cert Chain error

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] :exclamation: ::error::self signed certificate in certificate chain
time=“2023-04-19T21:51:04Z” level=debug msg=“exit with FAILURE: 1”
[drone-github-action/action] :x: 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:
Screen Shot 2023-04-25 at 2.53.40 PM

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