Skip to content

Commit

Permalink
Update README.md to include self-signed certificates information for …
Browse files Browse the repository at this point in the history
…OIDC (#242)
  • Loading branch information
austinfrog authored Jan 7, 2025
1 parent 1a51b15 commit 812206b
Showing 1 changed file with 14 additions and 0 deletions.
14 changes: 14 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -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.

</details>

<details>
Expand Down

0 comments on commit 812206b

Please sign in to comment.