-
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.
Merge branch 'master' into fix/MNT-23960_add-notosans-and-font-options
- Loading branch information
Showing
24 changed files
with
573 additions
and
190 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 |
---|---|---|
|
@@ -35,7 +35,7 @@ env: | |
GITHUB_ACTIONS_DEPLOY_TIMEOUT: 60 | ||
|
||
jobs: | ||
veracode: | ||
veracode_sca: | ||
name: "Veracode - Source Clear Scan (SCA)" | ||
runs-on: ubuntu-latest | ||
if: > | ||
|
@@ -52,6 +52,62 @@ jobs: | |
with: | ||
srcclr-api-token: ${{ secrets.SRCCLR_API_TOKEN }} | ||
|
||
veracode_sast: | ||
name: "Pipeline SAST Scan" | ||
runs-on: ubuntu-latest | ||
if: > | ||
(github.ref_name == 'master' || startsWith(github.ref_name, 'SP/') || startsWith(github.ref_name, 'HF/') || github.event_name == 'pull_request') && | ||
github.actor != 'dependabot[bot]' && | ||
!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] | ||
- name: "Login to Docker Hub" | ||
uses: docker/[email protected] | ||
with: | ||
username: ${{ secrets.DOCKER_USERNAME }} | ||
password: ${{ secrets.DOCKER_PASSWORD }} | ||
- name: "Login to Quay.io" | ||
uses: docker/[email protected] | ||
with: | ||
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" | ||
run: zip -r to-scan.zip engines/aio/target/alfresco-transform-core-aio-*.jar engines/base/target/alfresco-base-t-engine-*.jar model/target/alfresco-transform-model-*.jar | ||
- name: "Run SAST Scan" | ||
uses: veracode/[email protected] | ||
with: | ||
vid: ${{ secrets.VERACODE_API_ID }} | ||
vkey: ${{ secrets.VERACODE_API_KEY }} | ||
file: "to-scan.zip" | ||
fail_build: true | ||
project_name: alfresco-transform-core | ||
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 | ||
|
||
build_and_test: | ||
name: "Core & Base Snapshot deployment" | ||
runs-on: ubuntu-latest | ||
|
@@ -146,7 +202,7 @@ jobs: | |
release: | ||
name: "Release" | ||
runs-on: ubuntu-latest | ||
needs: [veracode, build_and_test, all_tests_matrix] | ||
needs: [veracode_sca, build_and_test, all_tests_matrix] | ||
if: > | ||
!(failure() || cancelled()) && | ||
contains(github.event.head_commit.message, '[release]') && | ||
|
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
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
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
37 changes: 37 additions & 0 deletions
37
engines/aio/src/test/java/org/alfresco/transform/aio/AIOLivenessReadinessProbeIT.java
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 |
---|---|---|
@@ -0,0 +1,37 @@ | ||
/* | ||
* #%L | ||
* Alfresco Transform Core | ||
* %% | ||
* Copyright (C) 2005 - 2023 Alfresco Software Limited | ||
* %% | ||
* This file is part of the Alfresco software. | ||
* - | ||
* If the software was purchased under a paid Alfresco license, the terms of | ||
* the paid license agreement will prevail. Otherwise, the software is | ||
* provided under the following open source license terms: | ||
* - | ||
* Alfresco is free software: you can redistribute it and/or modify | ||
* it under the terms of the GNU Lesser General Public License as published by | ||
* the Free Software Foundation, either version 3 of the License, or | ||
* (at your option) any later version. | ||
* - | ||
* Alfresco is distributed in the hope that it will be useful, | ||
* but WITHOUT ANY WARRANTY; without even the implied warranty of | ||
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the | ||
* GNU Lesser General Public License for more details. | ||
* - | ||
* You should have received a copy of the GNU Lesser General Public License | ||
* along with Alfresco. If not, see <http://www.gnu.org/licenses/>. | ||
* #L% | ||
*/ | ||
|
||
package org.alfresco.transform.aio; | ||
|
||
import org.alfresco.transform.base.LivenessReadinessProbeTest; | ||
|
||
public class AIOLivenessReadinessProbeIT extends LivenessReadinessProbeTest { | ||
@Override | ||
protected LivenessReadinessProbeTest.ImagesForTests getImageForTest() { | ||
return new ImagesForTests("alfresco-transform-core-aio", "text/plain", "text/plain", "original.txt"); | ||
} | ||
} |
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
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
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
Oops, something went wrong.