fix: set NODE_EXTRA_CA_CERTS for artifact upload/download actions #127
Reference in New Issue
Block a user
Delete Branch "fix/build-artifact-ca-cert"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Summary
Fixes
unable to verify the first certificateerror when uploading/downloading build artifacts.Problem
Node.js actions (checkout, cache, upload-artifact, download-artifact) use their own TLS stack and don't trust the system CA store populated by
update-ca-certificates. The Cloudflare origin CA cert is installed at the OS level but Node.js never sees it.Fix
Sets
NODE_EXTRA_CA_CERTS: /etc/ssl/certs/ca-certificates.crtas a job-level env var in:build.yml(build job)release.yml(build-linux and publish-release jobs)This points Node.js to the system CA bundle, which includes the Cloudflare origin CA after
update-ca-certificatesruns.