ACS-2352: Added Veracode agent-based scanning integration.

This commit is contained in:
Jamal Kaabi-Mofrad
2021-12-10 14:10:03 +00:00
parent 028b1ccaf6
commit 6a69611d13
3 changed files with 15 additions and 1 deletions
+5 -1
View File
@@ -9,10 +9,14 @@ mvn -B -q clean install \
-DskipTests \
-Dmaven.javadoc.skip=true \
com.srcclr:srcclr-maven-plugin:scan \
-Dcom.srcclr.apiToken=$SRCCLR_API_TOKEN > scan.log
-Dcom.srcclr.apiToken=${SRCCLR_API_TOKEN} > scan.log
SUCCESS=$? # this will read exit code of the previous command
if [ -z "$VERACODE_FAILS_BUILD" ] || [ "$VERACODE_FAILS_BUILD" = false ] ; then
SUCCESS=0
fi
cat scan.log | grep -e 'Full Report Details' -e 'Failed'
popd