File tree Expand file tree Collapse file tree 1 file changed +4
-5
lines changed
scanners/boostsecurityio/trivy-sbom Expand file tree Collapse file tree 1 file changed +4
-5
lines changed Original file line number Diff line number Diff line change @@ -43,16 +43,16 @@ steps:
4343 fi
4444
4545 # Create temporary solution to merge all projects
46- dotnet new sln -n $TEMP_SOLN_FILE --force || true
46+ dotnet new sln -n $TEMP_SOLN_FILE --force >/dev/null 2>&1 || true
4747
4848 # Add all found .csproj files to the solution
4949 echo "$PROJECT_LIST" | while IFS= read -r proj; do
50- [ -n "$proj" ] && dotnet sln $SCAN_TARGET add "$proj" || true
50+ [ -n "$proj" ] && dotnet sln $SCAN_TARGET add "$proj" >/dev/null 2>&1 || true
5151 done
5252
5353 # Restore packages while ignoring errors.
5454 if [ -n "$SCAN_TARGET" ]; then
55- dotnet restore "$SCAN_TARGET" --ignore-failed-sources --no-cache || true
55+ dotnet restore "$SCAN_TARGET" --ignore-failed-sources --no-cache >/dev/null 2>&1 || true
5656 fi
5757
5858 # Generate SBOM to temporary directory
@@ -63,11 +63,10 @@ steps:
6363 --disable-package-restore \
6464 --output "$OUTPUT_DIR" \
6565 --output-format json \
66- ; then
66+ >/dev/null 2>&1 ; then
6767
6868 if [ -f "$OUTPUT_DIR/bom.json" ]; then
6969 cat "$OUTPUT_DIR/bom.json"
70- rm -rf "$OUTPUT_DIR"
7170 else
7271 echo "SBOM result missing."
7372 exit 1
You can’t perform that action at this time.
0 commit comments