mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-07-31 17:39:05 +00:00
added script for Veracode Agent-Based Scan Software Composition Analysis
This commit is contained in:
@@ -108,8 +108,7 @@ jobs:
|
|||||||
|
|
||||||
- name: "Source Clear Scan (SCA)"
|
- name: "Source Clear Scan (SCA)"
|
||||||
stage: Security Scans
|
stage: Security Scans
|
||||||
script:
|
script: travis_wait 30 bash scripts/source_clear.sh
|
||||||
- echo "Source Clear Scan (SCA)"
|
|
||||||
- name: "Static Analysis (SAST)"
|
- name: "Static Analysis (SAST)"
|
||||||
stage: Security Scans
|
stage: Security Scans
|
||||||
script:
|
script:
|
||||||
|
15
scripts/source_clear.sh
Normal file
15
scripts/source_clear.sh
Normal file
@@ -0,0 +1,15 @@
|
|||||||
|
#!/usr/bin/env bash
|
||||||
|
# fail script immediately on any errors in external commands and print the lines
|
||||||
|
set -ev
|
||||||
|
|
||||||
|
mvn -B -q clean install \
|
||||||
|
-DskipTests \
|
||||||
|
-Dmaven.javadoc.skip=true \
|
||||||
|
com.srcclr:srcclr-maven-plugin:scan \
|
||||||
|
-Dcom.srcclr.apiToken=$SRCCLR_API_TOKEN > scan.log
|
||||||
|
|
||||||
|
SUCCESS=$? # this will read exit code of the previous command
|
||||||
|
|
||||||
|
cat scan.log | grep -e 'Full Report Details' -e 'Failed'
|
||||||
|
|
||||||
|
exit ${SUCCESS}
|
Reference in New Issue
Block a user