fcli icon indicating copy to clipboard operation
fcli copied to clipboard

Useful fcli expressions

Open rsenden opened this issue 2 years ago • 1 comments

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 avatar Jun 07 '23 12:06 rsenden

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

  • 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 avatar Jun 07 '23 13:06 rsenden