Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Useful fcli expressions #318

Open
rsenden opened this issue Jun 7, 2023 · 1 comment
Open

Useful fcli expressions #318

rsenden opened this issue Jun 7, 2023 · 1 comment
Labels
answered question Further information is requested

Comments

@rsenden
Copy link
Contributor

rsenden commented Jun 7, 2023

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
Copy link
Contributor Author

rsenden commented Jun 7, 2023

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 rsenden pinned this issue Jun 7, 2023
@rsenden rsenden unpinned this issue May 21, 2024
@rsenden rsenden pinned this issue May 21, 2024
@rsenden rsenden added question Further information is requested answered labels May 30, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
answered question Further information is requested
Projects
None yet
Development

No branches or pull requests

1 participant