Skip to content

Commit

Permalink
change executionSuccessful value for gh compatibility
Browse files Browse the repository at this point in the history
  • Loading branch information
jmservera committed Oct 20, 2022
1 parent b353785 commit 850705f
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions analyze.sh
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ eval ${CMD}
if [ "$OUTPUT_TYPE" == "sarif" ] && [ "$BASE_PATH" != "" ]; then
# prepend the pyhsical path
echo "Transform sarif file to include the physical path"
cat resultspre.sarif | jq -c "(.runs[].results[].locations[].physicalLocation.artifactLocation.uri) |=\"$BASE_PATH\"+." > "$OUTPUT"
cat $OUTPUT
cat resultspre.sarif | jq -c "(.runs[].results[].locations[].physicalLocation.artifactLocation.uri) |=\"$BASE_PATH\"+." > resultspre2.sarif
cat resultspre2.sarif | jq -c '(.runs[].invocations[].executionSuccessful)=true' > results.sarif
fi

0 comments on commit 850705f

Please sign in to comment.