Skip to content

Commit d883fc0

Browse files
committed
Do minor changes
JAVA-5435
1 parent a39b0c8 commit d883fc0

File tree

2 files changed

+8
-4
lines changed

2 files changed

+8
-4
lines changed

.evergreen/ssdlc-report.sh

Lines changed: 7 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#!/bin/bash
1+
#!/usr/bin/env bash
22

3-
set -o errexit
3+
set -eu
44

55
# Supported/used environment variables:
66
# PRODUCT_NAME
@@ -30,7 +30,11 @@ mkdir "${SSDLC_STATIC_ANALYSIS_REPORTS_PATH}"
3030

3131
printf "\nCreating SpotBugs SARIF reports\n"
3232
./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
3438
printf "\nSpotBugs created the following SARIF reports\n"
3539
IFS=$'\n'
3640
declare -a SARIF_PATHS=($(find "${RELATIVE_DIR_PATH}/.." -path "*/spotbugs/*.sarif"))

template_ssdlc_compliance_report.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ This information is available in multiple ways:
4747
Go to
4848
<a href="https://papertrail.devprod-infra.prod.corp.mongodb.com/product-version?product=${product_name}&version=${product_version}&format=json">
4949
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.
5151
</td>
5252
</tr>
5353
</table>

0 commit comments

Comments
 (0)