File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 7575
7676if [ " $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} "
8181fi
8282
83- if [ " $ARGUMENTS " != " " ]; then
83+ if [ " $ARGUMENTS " != " " ]; then
8484 CMD=" $CMD ${ARGUMENTS} "
8585fi
8686
@@ -96,6 +96,8 @@ eval ${CMD}
9696
9797if [ " $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
100102fi
101103
You can’t perform that action at this time.
0 commit comments