guitarrapc / git-shallow-clone-orb

circleci orb to execute git shallow clone for faster checkout.
https://circleci.com/orbs/registry/orb/guitarrapc/git-shallow-clone
MIT License
21 stars 11 forks source link

Fixes missing EOL issue with id_rsa file #26

Closed Pi-George closed 2 years ago

Pi-George commented 2 years ago

To fix issue: https://github.com/guitarrapc/git-shallow-clone-orb/issues/15

guitarrapc commented 2 years ago

all ci failed with PR. I'm looking to it.

https://github.com/guitarrapc/git-shallow-clone-orb/runs/4069832629

(umask 077; touch ~/.ssh/id_rsa)
chmod 0600 ~/.ssh/id_rsa
printf "%s" "$CHECKOUT_KEY" > "$SSH_CONFIG_DIR/id_rsa"

+ umask 077
+ touch /home/circleci/.ssh/id_rsa
+ chmod 0600 /home/circleci/.ssh/id_rsa
+ printf %s ''
/bin/bash: line 35: /id_rsa: Permission denied