Skip to content

Commit

Permalink
fix: FoD release-summary action: Fix potential SpEL exception for r…
Browse files Browse the repository at this point in the history
…eleases with open-source scans enabled (fixes #612)
  • Loading branch information
rsenden committed Sep 27, 2024
1 parent 78f6981 commit 5260bc8
Showing 1 changed file with 4 additions and 4 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -65,16 +65,16 @@ steps:
value: ${issues_raw.totalCount}
- set:
- name: ossCritical
value: ${issues_raw.filters.?[#this.fieldName == 'severity'][0].fieldFilterValues.^[#this.value == "Critical"]?.count?:0}
value: ${issues_raw.filters.^[#this.fieldName == 'severity']?.fieldFilterValues?.^[#this.value == "Critical"]?.count?:0}
- set:
- name: ossHigh
value: ${issues_raw.filters.?[#this.fieldName == 'severity'][0].fieldFilterValues.^[#this.value == "High"]?.count?:0}
value: ${issues_raw.filters.^[#this.fieldName == 'severity']?.fieldFilterValues?.^[#this.value == "High"]?.count?:0}
- set:
- name: ossMedium
value: ${issues_raw.filters.?[#this.fieldName == 'severity'][0].fieldFilterValues.^[#this.value == "Medium"]?.count?:0}
value: ${issues_raw.filters.^[#this.fieldName == 'severity']?.fieldFilterValues?.^[#this.value == "Medium"]?.count?:0}
- set:
- name: ossLow
value: ${issues_raw.filters.?[#this.fieldName == 'severity'][0].fieldFilterValues.^[#this.value == "Low"]?.count?:0}
value: ${issues_raw.filters.^[#this.fieldName == 'severity']?.fieldFilterValues?.^[#this.value == "Low"]?.count?:0}
# replace up to here

- write:
Expand Down

0 comments on commit 5260bc8

Please sign in to comment.