Skip to content

Commit 73e7c6c

Browse files
wilcorreaCopilot
andcommitted
fix(user-entrypoint): export GIT_SSL_CAINFO when corporate CA cert is present
Ensures git uses the system CA bundle (updated with the corporate cert) for HTTPS remotes, avoiding GIT_SSL_NO_VERIFY workarounds. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
1 parent 0605226 commit 73e7c6c

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

copilot-sandbox/user-entrypoint.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -62,6 +62,7 @@ fi
6262
# Corporate CA certificate
6363
if [ -f /usr/local/share/ca-certificates/extra-ca.crt ]; then
6464
export NODE_EXTRA_CA_CERTS=/usr/local/share/ca-certificates/extra-ca.crt
65+
export GIT_SSL_CAINFO=/etc/ssl/certs/ca-certificates.crt
6566
fi
6667

6768
# SSH config — reconstruct from host keys (init phase runs in a separate container)

0 commit comments

Comments
 (0)