From 7d135b93561a834902dada5340eef01462818ab3 Mon Sep 17 00:00:00 2001 From: mikolajbrzezinski <86791239+mikolajbrzezinski@users.noreply.github.com> Date: Wed, 6 Mar 2024 13:11:31 +0100 Subject: [PATCH] ACS-6931 Temporarily turn off SAST Scan (#2489) ACS-6931 Temporarily turn off SAST Scan --- .github/workflows/ci.yml | 102 ++++++++++++++++++++------------------- 1 file changed, 52 insertions(+), 50 deletions(-) diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index 930f57912f..b7ca84bcbc 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -71,56 +71,58 @@ jobs: - name: "Clean Maven cache" run: bash ./scripts/ci/cleanup_cache.sh - veracode_sast: - name: "Pipeline SAST Scan" - runs-on: ubuntu-latest - needs: [prepare] - if: > - (github.ref_name == 'master' || startsWith(github.ref_name, 'release/') || github.event_name == 'pull_request') && - github.actor != 'dependabot[bot]' && - !contains(github.event.head_commit.message, '[skip tests]') && - !contains(github.event.head_commit.message, '[force') - steps: - - uses: actions/checkout@v3 - - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.35.2 - - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v1.35.2 - - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v1.35.2 - - uses: Alfresco/alfresco-build-tools/.github/actions/github-download-file@v5.6.0 - with: - token: ${{ secrets.BOT_GITHUB_TOKEN }} - repository: "Alfresco/veracode-baseline-archive" - file-path: "alfresco-community-repo/alfresco-community-repo-baseline.json" - target: "baseline.json" - - name: "Build" - timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} - run: | - bash ./scripts/ci/init.sh - bash ./scripts/ci/build.sh - - name: "Run SAST Scan" - uses: veracode/Veracode-pipeline-scan-action@v1.0.10 - with: - vid: ${{ secrets.VERACODE_API_ID }} - vkey: ${{ secrets.VERACODE_API_KEY }} - file: "packaging/war/target/alfresco.war" - fail_build: true - project_name: alfresco-community-repo - issue_details: true - veracode_policy_name: Alfresco Default - summary_output: true - summary_output_file: results.json - summary_display: true - baseline_file: baseline.json - - name: Upload scan result - if: success() || failure() - run: zip readable_output.zip results.json - - name: Upload Artifact - if: success() || failure() - uses: actions/upload-artifact@v3 - with: - name: Veracode Pipeline-Scan Results (Human Readable) - path: readable_output.zip - - name: "Clean Maven cache" - run: bash ./scripts/ci/cleanup_cache.sh +# SEE: ACS-6931 Currently times out after an hour. TO BE RESTORED after resolving the issue with Veracode Support. +# +# veracode_sast: +# name: "Pipeline SAST Scan" +# runs-on: ubuntu-latest +# needs: [prepare] +# if: > +# (github.ref_name == 'master' || startsWith(github.ref_name, 'release/') || github.event_name == 'pull_request') && +# github.actor != 'dependabot[bot]' && +# !contains(github.event.head_commit.message, '[skip tests]') && +# !contains(github.event.head_commit.message, '[force') +# steps: +# - uses: actions/checkout@v3 +# - uses: Alfresco/alfresco-build-tools/.github/actions/get-build-info@v1.35.2 +# - uses: Alfresco/alfresco-build-tools/.github/actions/free-hosted-runner-disk-space@v1.35.2 +# - uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v1.35.2 +# - uses: Alfresco/alfresco-build-tools/.github/actions/github-download-file@v5.6.0 +# with: +# token: ${{ secrets.BOT_GITHUB_TOKEN }} +# repository: "Alfresco/veracode-baseline-archive" +# file-path: "alfresco-community-repo/alfresco-community-repo-baseline.json" +# target: "baseline.json" +# - name: "Build" +# timeout-minutes: ${{ fromJSON(env.GITHUB_ACTIONS_DEPLOY_TIMEOUT) }} +# run: | +# bash ./scripts/ci/init.sh +# bash ./scripts/ci/build.sh +# - name: "Run SAST Scan" +# uses: veracode/Veracode-pipeline-scan-action@v1.0.10 +# with: +# vid: ${{ secrets.VERACODE_API_ID }} +# vkey: ${{ secrets.VERACODE_API_KEY }} +# file: "packaging/war/target/alfresco.war" +# fail_build: true +# project_name: alfresco-community-repo +# issue_details: true +# veracode_policy_name: Alfresco Default +# summary_output: true +# summary_output_file: results.json +# summary_display: true +# baseline_file: baseline.json +# - name: Upload scan result +# if: success() || failure() +# run: zip readable_output.zip results.json +# - name: Upload Artifact +# if: success() || failure() +# uses: actions/upload-artifact@v3 +# with: +# name: Veracode Pipeline-Scan Results (Human Readable) +# path: readable_output.zip +# - name: "Clean Maven cache" +# run: bash ./scripts/ci/cleanup_cache.sh pmd_scan: name: "PMD Scan"