Skip to content

Santhosh26/FortifyCI

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

31 Commits
 
 
 
 
 
 
 
 

Repository files navigation

FortifyCI with Jira Integration

A unified script that integrates Fortify SAST with remote scanning for all CIs and provides Jira Integration.

Prerequisites

Before you can run the script, ensure you have the following prerequisites set up:

  1. Scancentral Client: Install the Scancentral client and ensure it's added to your environment path.
  2. FCLI: Install the Fortify Command Line Interface (FCLI) and ensure it's added to your environment path.
  3. FortifyBugtrackerutility: Install the Fortify Bug Tracker Utility.
  4. Python: Ensure you have Python 3 installed.
  5. PIP: Ensure you have PIP installed.
  6. Python Decouple: Install the python-decouple package using PIP: pip install python-decouple

Configuration Create a .env file in the same directory as your script. Add all necessary configurations to the .env file. For example: SSC_URL=your_ssc_url SSC_TOKEN=your_ssc_token ...

Running the Script Navigate to the directory containing the script. Run the script using Python:

python your_script_name.py

Understanding the Script The script performs the following steps:

  1. Fetches configuration values from the .env file.
  2. Creates a package using Scancentral.
  3. Logs in to SSC and SC-SAST.
  4. Starts a SAST scan using FCLI and retrieves the job token.
  5. Monitors the scan status until completion.
  6. Waits for Fortify SSC to process the scan results.
  7. Uploads issues to Jira.
  8. Queries the application using FCLI to get the count of issues based on severity.
  9. Check the issue counts against predefined limits to determine if the build obtains security clearance.

Troubleshooting Ensure all prerequisites are correctly installed and paths are set. Ensure the .env file contains all the necessary configurations and is located in the same directory as the script. Check the error messages printed by the script for more specific troubleshooting steps. **

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages