Commit 90130c0 1 parent 282d92d commit 90130c0 Copy full SHA for 90130c0
File tree 2 files changed +20
-7
lines changed
2 files changed +20
-7
lines changed Original file line number Diff line number Diff line change 83
83
uses : snyk/actions/gradle@0.4.0
84
84
continue-on-error : true
85
85
with :
86
- args : --org=${SNYK_ORG} --all-projects --exclude=$SNYK_TEST_EXCLUDE --sarif-file-output=snyk-report.sarif
86
+ args : --org=$SNYK_ORG --all-projects --exclude=$SNYK_TEST_EXCLUDE --sarif-file-output=snyk-report.sarif
87
+ - name : Fix undefined values
88
+ run : |
89
+ cat snyk-report.sarif | jq '
90
+ .runs[].tool[].rules[]
91
+ |= (
92
+ if .properties["security-severity"] == "undefined"
93
+ then .properties["security-severity"] =
94
+ ( if .shortDescription.text | test("(?i)critical") then "9.0"
95
+ elif .shortDescription.text | test("(?i)high") then "7.0"
96
+ elif .shortDescription.text | test("(?i)medium") then "4.0"
97
+ elif .shortDescription.text | test("(?i)low") then "0.1"
98
+ else ""
99
+ end
100
+ )
101
+ else .
102
+ end
103
+ )
104
+ ' > snyk-report-cleansed.sarif
87
105
- name : Upload result to GitHub Code Scanning
88
106
uses : github/codeql-action/upload-sarif@v3
89
107
with :
90
- sarif_file : snyk-report.sarif
108
+ sarif_file : snyk-report-cleansed .sarif
Original file line number Diff line number Diff line change 65
65
66
66
steps :
67
67
- uses : actions/checkout@v3
68
- - name : Set up JDK 21
69
- uses : actions/setup-java@v3
70
- with :
71
- java-version : ' 21'
72
- distribution : ' temurin'
73
68
- uses : snyk/actions/setup@0.4.0
74
69
- name : Install snyk-delta
75
70
run : |
You can’t perform that action at this time.
0 commit comments