fcli
fcli copied to clipboard
Useful fcli expressions
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.*'"`
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.*'"