mirror of
https://github.com/Alfresco/alfresco-transform-core.git
synced 2025-05-26 17:24:47 +00:00
ACS-2352: Added Veracode agent-based scanning integration.
This commit is contained in:
parent
028b1ccaf6
commit
6a69611d13
@ -26,6 +26,8 @@ branches:
|
|||||||
- /^ACS-.*$/
|
- /^ACS-.*$/
|
||||||
|
|
||||||
stages:
|
stages:
|
||||||
|
- name: Veracode Scan
|
||||||
|
if: branch = master
|
||||||
- build and test
|
- build and test
|
||||||
- release
|
- release
|
||||||
- company_release
|
- company_release
|
||||||
@ -34,6 +36,11 @@ before_install: bash _ci/init.sh
|
|||||||
|
|
||||||
jobs:
|
jobs:
|
||||||
include:
|
include:
|
||||||
|
- stage: Veracode Scan
|
||||||
|
name: "Veracode - Source Clear Scan (SCA)"
|
||||||
|
install: skip
|
||||||
|
script: travis_wait 30 bash _ci/source_clear.sh
|
||||||
|
|
||||||
- stage: Build and Test
|
- stage: Build and Test
|
||||||
name: "Core & Base Snapshot deployment" # This is to separate the snapshot deployment from the following jobs, to prevent duplication on nexus
|
name: "Core & Base Snapshot deployment" # This is to separate the snapshot deployment from the following jobs, to prevent duplication on nexus
|
||||||
if: branch = master AND type != pull_request
|
if: branch = master AND type != pull_request
|
||||||
|
@ -9,10 +9,14 @@ mvn -B -q clean install \
|
|||||||
-DskipTests \
|
-DskipTests \
|
||||||
-Dmaven.javadoc.skip=true \
|
-Dmaven.javadoc.skip=true \
|
||||||
com.srcclr:srcclr-maven-plugin:scan \
|
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
|
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'
|
cat scan.log | grep -e 'Full Report Details' -e 'Failed'
|
||||||
|
|
||||||
popd
|
popd
|
3
srcclr.yml
Normal file
3
srcclr.yml
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
# To avoid the provided dependencies we set the scope to runtime. See: https://docs.veracode.com/r/c_sc_scan_directives
|
||||||
|
# runtime: to restrict the scan to compile and runtime dependencies.
|
||||||
|
scope: runtime
|
Loading…
x
Reference in New Issue
Block a user