-
Notifications
You must be signed in to change notification settings - Fork 37
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
aaf4e6e
commit efd6f2e
Showing
1 changed file
with
45 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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')) && | ||
|
@@ -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 | ||
|