Skip to content

Commit

Permalink
ACS-6304 Separate share and acs
Browse files Browse the repository at this point in the history
  • Loading branch information
mikolajbrzezinski committed Nov 30, 2023
1 parent aaf4e6e commit efd6f2e
Showing 1 changed file with 45 additions and 5 deletions.
50 changes: 45 additions & 5 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ jobs:
run: bash ./scripts/ci/cleanup_cache.sh

veracode_sast_acs:
name: "Pipeline SAST Scan"
name: "Pipeline SAST Scan - ACS"
runs-on: ubuntu-latest
if: >
((github.ref_name == 'master' || startsWith(github.ref_name, 'release/') || github.event_name == 'pull_request')) &&
Expand All @@ -81,23 +81,63 @@ jobs:
with:
vid: '${{ secrets.VERACODE_API_ID }}'
vkey: '${{ secrets.VERACODE_API_KEY }}'
file: "distribution/target/alfresco-content-services-*.jar"
file: "distribution/target/alfresco.war"
fail_build: true
project_name: acs-packaging
project_name: acs-packaging-acs
issue_details: true
veracode_policy_name: Alfresco Default
summary_output: true
summary_output_file: readable_results.txt
summary_display: true
debug: 1
- name: Upload scan result
if: success() || failure()
run: zip readable_output.zip readable_results.txt
- name: Upload Artifact
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: Veracode Pipeline-Scan Results (Human Readable)
name: Veracode Pipeline-Scan Results - ACS (Human Readable)
path: readable_output.zip
- name: "Clean Maven cache"
run: bash ./scripts/ci/cleanup_cache.sh

veracode_sast_share:
name: "Pipeline SAST Scan - Share"
runs-on: ubuntu-latest
if: >
((github.ref_name == 'master' || startsWith(github.ref_name, 'release/') || github.event_name == 'pull_request')) &&
!contains(github.event.head_commit.message, '[skip tests]')
steps:
- uses: actions/checkout@v3
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected]
- 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/[email protected]
with:
vid: '${{ secrets.VERACODE_API_ID }}'
vkey: '${{ secrets.VERACODE_API_KEY }}'
file: "distribution-share/target/share.war"
fail_build: true
project_name: acs-packaging-share
issue_details: true
veracode_policy_name: Alfresco Default
summary_output: true
summary_output_file: readable_results.txt
summary_display: true
- name: Upload scan result
if: success() || failure()
run: zip readable_output.zip readable_results.txt
- name: Upload Artifact
if: success() || failure()
uses: actions/upload-artifact@v3
with:
name: Veracode Pipeline-Scan Results - Share (Human Readable)
path: readable_output.zip
- name: "Clean Maven cache"
run: bash ./scripts/ci/cleanup_cache.sh
Expand Down

0 comments on commit efd6f2e

Please sign in to comment.