cachix / install-nix-action

Installs Nix on GitHub Actions for the supported platforms: Linux and macOS.
Apache License 2.0
513 stars 79 forks source link

Configuring NIX_SSL_CERT_FILE for self-hosted Linux runners when needed #136

Open vroad opened 2 years ago

vroad commented 2 years ago

I set up my self-hosted runner on AWS with philips-labs/terraform-aws-github-runner, and found that python programs fails to fetch from HTTPS URLs without environment variable NIX_SSL_CERT_FILE. Only occured with Amazon Linux 2 AMIs, with Ubuntu AMIs this action just worked fine.

Can we somehow detect this situation and automatically set this environment variable? Currenly, the action only sets the variable on macOS runners.

https://github.com/cachix/install-nix-action/blob/451e61183802597c1febd6ca3cf18aa163f93a06/install-nix.sh#L72-L78

amarshall commented 1 year ago

Possibly related: https://github.com/cachix/install-nix-action/pull/145