terrascan icon indicating copy to clipboard operation
terrascan copied to clipboard

Error while scanning a git repo remotely

Open ashayndoshi opened this issue 3 years ago • 1 comments

  • terrascan version: 1.10.0
  • Operating System: Windos

Description

I am trying to scan a git repo remotely via terrascan how i keep getting the following errors:

  • error downloader/getter.go:148 empty remote url or type or desitnation dir path
  • cli/run.go:120 scan run failed{error 26 0 remote url or destination dir path cannot be empty}

What I Did

  • Ensured that I am authenticated in GIT
  • Ensured that the repo is cloned in my git account Slide1

Screenshot attached for reference

ashayndoshi avatar Oct 20 '21 15:10 ashayndoshi

Hi @ashayndoshi , Thanks for using terrascan.

I believe, you are missing the -r before the git param. For eg:

$ terrascan scan -r git -u https://github.com/accurics/KaiMonkey.git

Do let me know if this works for you!

kanchwala-yusuf avatar Oct 23 '21 09:10 kanchwala-yusuf