Skip to content

Commit 9aac327

Browse files
committed
fix param names
1 parent 648230d commit 9aac327

1 file changed

Lines changed: 5 additions & 3 deletions

File tree

analyze.sh

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -75,12 +75,12 @@ fi
7575

7676
if [ "$BASE_PATH" != "" ]; then
7777
if [[ "$BASE_PATH" != */ ]]; then
78-
BASEPATH="$BASE_PATH/"
78+
BASE_PATH="$BASE_PATH/"
7979
fi
8080
CMD="$CMD -sourcepath ${BASE_PATH}"
8181
fi
8282

83-
if [ "$ARGUMENTS" != ""]; then
83+
if [ "$ARGUMENTS" != "" ]; then
8484
CMD="$CMD ${ARGUMENTS}"
8585
fi
8686

@@ -96,6 +96,8 @@ eval ${CMD}
9696

9797
if [ "$OUTPUT_TYPE" == "sarif" ] && [ "$BASE_PATH" != "" ]; then
9898
# prepend the pyhsical path
99-
jq -c "(.runs[].results[].locations[].physicalLocation.artifactLocation.uri) |=\"$BASEPATH\"+." resultspre.sarif > "$OUTPUT"
99+
echo "Transform sarif file to include the physical path"
100+
jq -c "(.runs[].results[].locations[].physicalLocation.artifactLocation.uri) |=\"$BASE_PATH\"+." resultspre.sarif > "$OUTPUT"
101+
cat $OUTPUT
100102
fi
101103

0 commit comments

Comments
 (0)