Checking out code from github.com


#1

Hi all,
I’m new to circleci; pardon me if I’m missing something basic here but I couldn’t find it in the docs.

I’m trying to checkout code from github.

The documentation for the “checkout” step says that “If you require doing git over HTTPS you should not use this step as it configures git to checkout over ssh.” And indeed, when I use it in my config.yml, it’s not able to verify gihub.com’s certificate

steps:
  - checkout

The authenticity of host 'github.com (192.30.253.112)' can't be established.
RSA key fingerprint is SHA256:nThbg6kXUpJWGl7E1IGOCspRomTxdCARLviKw6E5SY8.
Are you sure you want to continue connecting (yes/no)?

Is there a recommended way around this?

This is a link to this build: https://circleci.com/gh/kpachar/Praatah/6

Strangely, when I used the pre-built nodejs docker image, the checkout step moved on with a warning.


#2

I figured out what the problem was. Posting here in case someone else runs into the same issue:
I was using a Docker image that used the circleci official android image and then added something else on top of it, but while doing so, the USER was set to root.

The solution was to set USER to circleci at the end of the Dockerfile.

Good day!


#3

This topic was automatically closed 41 days after the last reply. New replies are no longer allowed.