tenable / terrascan-action

Terrascan GitHub action. Scan infrastructure as code including Terraform, Kubernetes, Helm, and Kustomize file for security best practices.
Apache License 2.0
52 stars 31 forks source link

Getting Host key verification failed when using PAT #86

Open rmccarthy-ellevation opened 1 year ago

rmccarthy-ellevation commented 1 year ago

The terraform I am trying to scan with terrascan has modules that are in another private repo in the org. I have set up a PAT with the right permissions. I think this is due to the app using ssh to access the repo. However, I'm not sure is there a way to make this work?

- name: Run Terrascan id: terrascan uses: tenable/terrascan-action@main with: iac_type: 'terraform' iac_version: 'v14' policy_type: 'aws' only_warn: true verbose: true iac_dir: A_DIR scm_token: ${{ secrets.TEST_MYPAT }}