Failed to verify cert actions register

Currently we are using a self signed certificate as we are implementing/testing gitea actions to see if supports the needs for application. We have no issues accessing the gitea site, but when running the gitea-action register we get the following error

ERROR Cannot ping the Gitea instance server         error="unavailable: tls: failed to verify certificate: x509: certificate signed by unknown authority"