Open lward-lucid opened 2 years ago
Just realised after posting this the scm_token
is only going to be used on https
git checkouts and would not be used in the code example above that is using git::
protocol. So even if host key support is added we would end up having an issue with passing ssh creds to the action in order to git checkout the modules.
Hi
Can this action be extended (or would you accept a PR) that allowed the known_host file to be set when running this action? Or have the action pre-loaded with at least githubs host keys - https://docs.github.com/en/authentication/keeping-your-account-and-data-secure/githubs-ssh-key-fingerprints
Currently the default openssh (and via this git) has the StrictHostKeyChecking enabled (rightly so), however due to this the terrascan action cannot checkout a terraform module hosted in a private git repository (not sure if this would also apply to public git repo as well)
We use private modules that are accessed via git like so
The terrascan action allows us to set the
scm_token
param to checkout these module (private repos) but it fails on host key verificationThanks