File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 1
- #! /bin/bash
1
+ #! /usr/ bin/env bash
2
2
3
- set -o errexit
3
+ set -eu
4
4
5
5
# Supported/used environment variables:
6
6
# PRODUCT_NAME
@@ -30,7 +30,11 @@ mkdir "${SSDLC_STATIC_ANALYSIS_REPORTS_PATH}"
30
30
31
31
printf " \nCreating SpotBugs SARIF reports\n"
32
32
./gradlew -version
33
- ./gradlew -PssdlcReport.enabled=true --continue -x test -x integrationTest -x spotlessApply check scalaCheck kotlinCheck || true
33
+ set +e
34
+ # This `gradlew` command is expected to exit with a non-zero exit status,
35
+ # because it reports all the findings that we normally explicitly exclude as "No Fix Needed"/"False Positive".
36
+ ./gradlew -PssdlcReport.enabled=true --continue -x test -x integrationTest -x spotlessApply check scalaCheck kotlinCheck
37
+ set -e
34
38
printf " \nSpotBugs created the following SARIF reports\n"
35
39
IFS=$' \n '
36
40
declare -a SARIF_PATHS=($( find " ${RELATIVE_DIR_PATH} /.." -path " */spotbugs/*.sarif" ) )
Original file line number Diff line number Diff line change @@ -47,7 +47,7 @@ This information is available in multiple ways:
47
47
Go to
48
48
<a href="https://papertrail.devprod-infra.prod.corp.mongodb.com/product-version?product=${product_name}&version=${product_version}&format=json">
49
49
https://papertrail.devprod-infra.prod.corp.mongodb.com/product-version?product=${product_name}&version=${product_version}&format=json</a>
50
- and loot at the value associated with the <code>submitter</code> key.
50
+ and look at the value associated with the <code>submitter</code> key.
51
51
</td>
52
52
</tr >
53
53
</table >
You can’t perform that action at this time.
0 commit comments