-
Notifications
You must be signed in to change notification settings - Fork 23
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
7916f34
commit bb7d50c
Showing
1 changed file
with
14 additions
and
6 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 |
---|---|---|
|
@@ -56,12 +56,13 @@ jobs: | |
name: "Pipeline SAST Scan" | ||
runs-on: ubuntu-latest | ||
if: > | ||
((github.ref_name == 'master' || startsWith(github.ref_name, 'SP/') || github.event_name == 'pull_request')) && | ||
!contains(github.event.head_commit.message, '[skip build]') | ||
(github.ref_name == 'master' || startsWith(github.ref_name, 'SP/') || startsWith(github.ref_name, 'HF/') || github.event_name == 'pull_request') && | ||
!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.33.0 | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/setup-java-build@v1.33.0 | ||
- 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 | ||
- name: "Login to Docker Hub" | ||
uses: docker/[email protected] | ||
with: | ||
|
@@ -73,6 +74,12 @@ jobs: | |
registry: quay.io | ||
username: ${{ secrets.QUAY_USERNAME }} | ||
password: ${{ secrets.QUAY_PASSWORD }} | ||
- uses: Alfresco/alfresco-build-tools/.github/actions/[email protected] | ||
with: | ||
token: ${{ secrets.BOT_GITHUB_TOKEN }} | ||
repository: "Alfresco/veracode-baseline-archive" | ||
file-path: "alfresco-transform-core/alfresco-transform-core-baseline.json" | ||
target: "baseline.json" | ||
- name: "Build" | ||
run: mvn -B -U install -DskipTests | ||
- name: "Create zip" | ||
|
@@ -89,11 +96,12 @@ jobs: | |
issue_details: true | ||
veracode_policy_name: Alfresco Default | ||
summary_output: true | ||
summary_output_file: readable_results.txt | ||
summary_output_file: results.json | ||
summary_display: true | ||
baseline_file: baseline.json | ||
- name: Upload scan result | ||
if: success() || failure() | ||
run: zip readable_output.zip readable_results.txt | ||
run: zip readable_output.zip results.json | ||
- name: Upload Artifact | ||
if: success() || failure() | ||
uses: actions/upload-artifact@v3 | ||
|