Simplesecurity Index / Simplesecurity / Plugins
Auto-generated documentation for simplesecurity.plugins module.
Generate list of findings using bandit. requires bandit on the system path.
Params: scanDir(str): select a scan directory (useful for cicd etc)
RuntimeError
- if bandit is not on the system path, then throw this error
list[Finding]
- our findings dictionary
def bandit(scanDir=".") -> list[Finding]: ...
Generate list of findings using tool. requires tool on the system path.
Params: scanDir(str): select a scan directory (useful for cicd etc)
RuntimeError
- if flake8 is not on the system path, then throw this error
list[Finding]
- our findings dictionary
def dlint(scanDir=".") -> list[Finding]: ...
Generate list of findings using tool. requires tool on the system path.
Params: scanDir(str): select a scan directory (useful for cicd etc)
RuntimeError
- if dodgy is not on the system path, then throw this error
list[Finding]
- our findings dictionary
def dodgy(scanDir=".") -> list[Finding]: ...
Grab evidence from the source file.
desiredLine
int - line to highlightfile
str - file to extract evidence from
list[Line]
- list of lines
def extractEvidence(desiredLine: int, file: str) -> list[Line]: ...
Generate list of findings using tool. requires tool on the system path.
Params: scanDir(str): select a scan directory (useful for cicd etc)
RuntimeError
- if safety is not on the system path, then throw this error
list[Finding]
- our findings dictionary
def safety(scanDir=".") -> list[Finding]: ...
Generate list of findings using for semgrep. Requires semgrep on the system path (wsl in windows).
RuntimeError
- if semgrep is not on the system path, then throw this error
list[Finding]
- our findings dictionary
def semgrep(scanDir=".") -> list[Finding]: ...