I am attempting to store my github fingerprint as an Environment Variable in my project and use it inside of the add_ssh_keys command in circle.yml.
- add_ssh_keys: fingerprints: $PROJ_FINGERPRINT
I would prefer doing this rather than adding the fingerprint directly to my repository. However, circle does not seem to pick up on environment variables in these circle specific commands. It only picks up on them in custom commands. It also doesn’t seem possible to add SH keys in custom commands, according to the documentation:
“Even though CircleCI uses ssh-agent to sign all added SSH keys, you must use the add_ssh_keys key to actually add keys to a container.”
Does anyone know of another possible way around this? If any? Thank you for the help in advance.