Skip to content

Commit

Permalink
chore: Action & resource bundle updates
Browse files Browse the repository at this point in the history
rsenden committed Apr 15, 2024
1 parent aa69c89 commit 727f009
Showing 2 changed files with 25 additions and 26 deletions.
Original file line number Diff line number Diff line change
@@ -38,33 +38,32 @@ steps:
- requests:
- name: issueSelectorSet
uri: /api/v1/projectVersions/${parameters.appversion.id}/issueSelectorSet?fields=filterBySet

# Collect analysis types from SSC issue selector filter by sets,
# and collect latest scan for each analysis type
- forEach:
values: ${issueSelectorSet.filterBySet.^[displayName=='Analysis Type'].selectorOptions}
name: analysisType
do:
# Collect analysis types
- append:
- name: analysisTypes
value: ${analysisType}
# Load latest scan for current analysis type
- progress: Loading ${analysisType.displayName} scan data
- requests:
- name: artifactsResponse
uri: /api/v1/projectVersions/${parameters.appversion.id}/artifacts
type: paged
query:
embed: scans
forEach:
name: artifact
breakIf: ${lastScans!=null && lastScans[analysisType.guid]!=null}
- set:
- name: analysisTypes
value: ${issueSelectorSet.filterBySet.^[displayName=='Analysis Type'].selectorOptions}
- requests:
- if: ${analysisTypes!=null && analysisTypes.size()>0}
name: artifactsResponse
uri: /api/v1/projectVersions/${parameters.appversion.id}/artifacts
type: paged
query:
embed: scans
forEach:
name: artifact
breakIf: ${analysizedScans?.![type]?.containsAll(analysisTypes.![displayName])?:false}
do:
- forEach:
values: ${artifact._embed.scans}
name: scan
do:
- append:
- name: lastScans
property: ${analysisType.displayName}
value: ${artifact._embed.scans?.^[type==#root.analysisType.guid]}
- name: lastScans
if: ${lastScans==null || lastScans[scan.type]==null}
property: ${analysisTypes?.^[guid==#root.scan.type].displayName}
value: ${scan}
- name: analyzedScans
value: ${scan}


# Collect SSC filter set data, together with issue counts by analysis type & folder
- requests:
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
# Used to 'productize' some descriptions defined in FortifyCLIMessages.properties
product=SSC
default-connect-timeout = 10 seconds
default-socket-timeout = 60 seconds
default-socket-timeout = 5 minutes

# Make sure none of the commands inherit usage header or description of the top-level fcli command
# Note that we define these as usage.* whereas our parent bundle defines fcli.usage.* (with fcli prefix).

0 comments on commit 727f009

Please sign in to comment.