Troubleshooting checkout step failing - Alpine image

If you try to use the checkout step but you see the following error

Either git or ssh (required by git to clone through SSH) is not installed in the image. Falling back to CircleCI's native git client but the behavior may be different from official git. If this is an issue, please use an image that has official git and ssh installed.

This is caused by either SSH or git missing from the image that you are using


The following commands will install openSSH and git the code can be copied and pasted into your config.yml before calling the checkout step

      - run: apk update
      - run: apk upgrade
      - run: apk add --no-cache openssh
      - run: apk add git


The commands will allow you to run the checkout step successfully.



Was this article helpful?
1 out of 1 found this helpful



Article is closed for comments.