fortify / fcli

fcli is a command-line utility for interacting with various Fortify products
https://fortify.github.io/fcli/
Other
31 stars 17 forks source link

Useful fcli expressions #318

Open rsenden opened 1 year ago

rsenden commented 1 year ago

This issue is meant for collecting useful fcli query (--query option) and output (-o expr=...) expressions. Each comment added on this issue should describe only a single expression. When adding a comment, please copy the following block and fill in the details while keeping the markdown formatting like ** and backticks.

**Type:** Query or Output
**Purpose:** Short description of the purpose for this expression
**Expression:** `scanTypes matches ".*\bSCA\b.*"`
**Explanation:** (Optional) Short explanation of how this expression works

**Sample fcli commands**

* Bash: `fcli ssc appversion-artifact list --appversion MyApp:version -q 'scanTypes matches ".*\bSCA\b.*"'`
* PowerShell: `fcli ssc appversion-artifact list --appversion MyApp:version -q "scanTypes matches '.*\bSCA\b.*'"`
* Windows cmd: `fcli ssc appversion-artifact list --appversion MyApp:version -q "scanTypes matches '.*\bSCA\b.*'"`
rsenden commented 1 year ago

Type: Query Purpose: List all artifacts containing a Fortify SCA artifact Expression: scanTypes matches ".*\bSCA\b.*" Explanation: Check whether the scanTypes property contains the full word SCA, possibly surrounded by other scan types

Sample fcli commands