Skip to content

mend-toolkit/threadfix-integration

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

15 Commits
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Logo License

Supported Operating Systems

  • Linux (Bash): CentOS, Debian, Ubuntu, RedHat
  • Windows (PowerShell): 10, 2012, 2016

Pre-requisites

  • JDK 17

Installation and Execution from GitHub:

  • Install pre-requisites above
  • Download ThreadFix.jar from the most recent tagged release.
  • Execute as shown below
curl -LJO https://github.com/mend-toolkit/threadfix-integration/releases/latest/download/ThreadFix.jar

Usage Examples

Regarding accessing API's, it's best to use a Mend Service User. The MendURL auto appends the additional API URL, so you only need to provide the prefix portion: https://saas.whitesourcesoftware.com

There are two approaches - you can either specify the Threadfix Application ID or provide a Threadfix ProjectName. Specifying "ProjectName" will lookup the Application ID. If the application does not exist, it will create the application in Threadfix and populate with data.

Threadfix Application ID Example:

java -jar ThreadFix.jar mendurl="https://{Mend URL}" \
username="{Username}" userkey="{UserKey}" \
apikey="{Mend Api Key}" productname="{Mend Product Name}" \
teamname="Mend" threadfixapikey="{tf-apikey}" \
threadfixurl="http://{Your Server IP Address}:8080/threadfix" \
threadfixid={application id}

Threadfix Project Name Example:

java -jar ThreadFix.jar mendurl="https://{Mend URL}" \
username="{Username}" userkey="{UserKey}" \
apikey="{Mend Api Key}" productname="{Mend Product Name}" projectname="{Mend Project Name}"\
teamname="Mend" threadfixapikey="{tf-apikey}" \
threadfixurl="http://{Your Server IP Address}:8080/threadfix" \
threadfixprojectname="{Threadfix ProjectName}"