poutine icon indicating copy to clipboard operation
poutine copied to clipboard

Unable to analyze local repositories

Open AppSecAmael opened this issue 1 year ago • 2 comments

Describe the bug I'm facing an "exit status 1" error with no way to understand what happens.

I'm running your docker image in a Kali Linux Guest system running on a Virtualbox Windows host. I tried with a projectfolder shared as a vagrant filesystem, and as a native folder : same issue.

To Reproduce

┌──(user㉿host)-[~/workspace/host-workspace/project]
└─$ docker run  -it -v ~/native-folder/:/app ghcr.io/boostsecurityio/poutine:latest -verbose  -scm gitlab analyze_local /app 
12:43PM | ERROR | error="failed to analyze repoPath /app: failed to parse repository: exit status 1"

Expected behavior A clear and concise description of the error when turning on the "-verbose" flag.

AppSecAmael avatar May 13 '24 12:05 AppSecAmael

Besides the verbose output not being verbose, I believe this issue is in part caused by https://github.com/boostsecurityio/poutine/issues/78. There's a few oddities in using analyze_local with a mounted directory at the moment.

Can you give this command a try?

docker run  -it -v ~/native-folder/:/app --entrypoint sh ghcr.io/boostsecurityio/poutine:0.9.12 -c "git config --global --add safe.directory /app; poutine -verbose analyze_local /app"

becojo avatar May 13 '24 15:05 becojo

Thanks, this made the trick !

AppSecAmael avatar May 14 '24 07:05 AppSecAmael