From a7975a8959e209658e4a3530eafdd426741188a4 Mon Sep 17 00:00:00 2001 From: Manish Kumar Date: Thu, 4 Apr 2024 11:44:09 +0530 Subject: [PATCH] [ACS-7475] added SCA in workflow file --- .github/workflows/ci.yml | 19 +++++++++++++++++++ 1 file changed, 19 insertions(+) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index ed97e9dc..b882a61d 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -28,6 +28,25 @@ jobs: steps: - uses: Alfresco/alfresco-build-tools/.github/actions/pre-commit@v1.35.0 + veracode_sca: + name: "Veracode - Source Clear Scan (SCA)" + runs-on: ubuntu-latest + if: > + github.ref_name == 'master' || + github.event_name == 'pull_request' + steps: + - uses: actions/checkout@v3 + - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.34.0 + - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v1.34.0 + with: + java-version: '17' + - name: "Clean-up SNAPSHOT artifacts" + run: find "${HOME}/.m2/repository/" -type d -name "*-SNAPSHOT*" | xargs -r -l rm -rf + - uses: Alfresco/alfresco-build-tools/.github/actions/veracode@v1.34.0 + continue-on-error: true + with: + srcclr-api-token: ${{ secrets.SRCCLR_API_TOKEN }} + build: name: "Build application" runs-on: ubuntu-latest