diff --git a/README.md b/README.md index 9a8747a87..d45fbb560 100644 --- a/README.md +++ b/README.md @@ -120,6 +120,20 @@ Example step utilizing OpenID Connect: **Notice:** When using OIDC authentication, this action outputs both the OIDC token and the OIDC token username. These can be utilized within the current workflow to log into the JFrog platform through other actions or clients (e.g., for use with `docker login`). The added outputs are `oidc-token` and `oidc-user`, respectively. +### Handling Self-Signed Certificates + +If your JFrog instance is configured with a self-signed SSL certificate, you may encounter errors with the GitHub Actions HTTP client not trusting your certificate. To help Node.js recognize and trust your self-signed certificate, follow these steps: + +1. **Prepare the SSL Certificate**: Save your SSL certificate chain, including the root CA and any intermediate certificates, into a `.pem` file. Ensure that this file is accessible within your GitHub Actions environment. + +2. **Set the Environment Variable**: In your GitHub Actions workflow, set the `NODE_EXTRA_CA_CERTS` environment variable to specify the location of your `.pem` file. Add the following line to your workflow: + + ```yaml + env: + NODE_EXTRA_CA_CERTS: /path/to/certificate/server.pem + ``` +Replace /path/to/certificate/server.pem with the actual path to your certificate file on your runner. +