Skip to content

Powershell script to parse a SAST Scan Log and present results in Excel

Notifications You must be signed in to change notification settings

cx-michael-fowler/ScanLogParser

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 

Repository files navigation

Checkmarx SAST Scan Log Parser

Takes a SAST scan log file or a Checkmarx One Scan ID as an input and opens an Excel document with parsed details from the SAST log file.

When a Scan ID is used additional details will be sourced from Checkmarx One including preset, branch name, origin and other data

Has seperate tabs for

  • General Details
  • Engine Configuration
  • Predefined File Exclusions
  • Phases
  • Files Processed
  • Results Summary
  • General Queries
  • Errors

Notes:

  • The CXOneAPIModule folder needs to be placed into the same location as the script in order to use the Scan ID function
  • Excel created is not saved and must be manually saved if required

Usage

Help

.\ScanLogParser.ps1 -help [<CommonParameters>]

Parse Log File

.\ScanLogParser.ps1 [-logPath <string>] [<CommonParameters>]

Parse Log from Checkmarx One Scan ID

.\ScanLogParser.ps1 -scanId <string> [-silentLogin -apiKey <string] [<CommonParameters>]

Parameters

PARAMETER help
Display help

PARAMETER logPath
The file path for the Scan Log to be processed. Use when parsing a downloaded log file

PARAMETER scanId
A Checkmarx One Scan ID which will be used to retrieve the SAST log

PARAMETER silentLogin
Log into Checkmarx One using a provided API Key. Is optional and if not used a prompt will appear for the key

PARAMETER apiKey
The API Key used to log into Checkamrx One. Is mandatory with silentLogin

About

Powershell script to parse a SAST Scan Log and present results in Excel

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published