ShiftLeftSecurity / sast-scan

Scan is a free & Open Source DevSecOps tool for performing static analysis based security testing of your applications and its dependencies. CI and Git friendly.

Home Page:https://discord.gg/DCNxzaeUpd

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Scan always finish with exit code 1

guidorapisarda opened this issue · comments

I'm using the docker run --rm -e "WORKSPACE=${PWD}" -v $PWD:/app shiftleft/sast-scan scan command to execute scans on my repo (it has python and terraform code). The exit code is always 1 (error) and no log is printed on the console.
Error

I tried removing all the types of scan one by one, just to find that whatever scan type I'm using, it always ends with exit code 1. Can i enable some log tracing?

commented

@guidorapisarda automatic build breaker is a feature and is based on critical and high vulnerabilities found. You can pass the argument --no-error to disable this

Okey, thanks for the info and for your very fast response. I couldn't find that option on my own 🤣

commented

Not an issue. Happy to help!