Hi,
I'm not sure if this has something to do with https://github.com/golang/go/issues/24652 but I'm running this SDK in a simple
FROM alpine
WORKDIR /app
COPY --from=builder /http /http
ENTRYPOINT /http
container and it seems to be triggering a
Get https://api.github.com/repos/OGKevin/x/pulls/x: x509: a certificate signed by unknown authority error, when the code executes
pullRequest, _,err:= handler.client.PullRequests.Get(...)
I did some research and could not find anything concrete. Most results, without even mentioning docker, are about docker registry. The only thing that came close was the above-referenced issue but I'm missing some knowledge to conclude if that's indeed related.
Maybe you guys have an idea why this is happening? Because this is a bubbled up error, the stack trace does not show the actual reason, but I think that could be recovered by tracing if needed.
Ah, solved. needed to add steps to properly update ca-certificates
@OGKevin how did you solve it?
@renskiy I've added the following to my dockerfile
RUN apk update \
&& apk upgrade \
&& apk add --no-cache \
ca-certificates \
&& update-ca-certificates 2>/dev/null || true
To update the ca-certificates
Most helpful comment
@renskiy I've added the following to my dockerfile
To update the
ca-certificates