Skip to content
This repository has been archived by the owner on Jul 9, 2020. It is now read-only.

venicegeo/sspf

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 

Repository files navigation

SSPF

This small script parses the JSON returned from a threadfix server for a project's vulnerabilities and returns 1 if any vulnerabilities above a certain threshold are found.

Currently, in the sspf.py, the threshold criteria is hard-coded:

criteria = ['highVulnCount', 'criticalVulnCount']

If the results contain any number other than 0 for highVulnCount or criticalVulnCount the return code is 1. Otherwise the return code is 0 which indicates a success.

Example

$ curl  --fail --silent 'https://threadfix.yourserver.io/rest/applications/$THREADFIXAPPID?apiKey=$THREADFIXKEY | ./sspf.py

Implementing within a Jenkins Pipeline

...
  stage("Scan Pass/Fail") {
    sh "echo 'Scan Pass/Fail running'"
    git url: "https://github.com/venicegeo/sspf"
    sh  "curl  --fail --silent 'https://threadfix.yourserver.io/rest/applications/$THREADFIXAPPID?apiKey=$THREADFIXKEY | ./sspf.py"
  }
...

Not complete

About

A Threadfix Results Parser

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages