forked from overture-stack/arranger
-
Notifications
You must be signed in to change notification settings - Fork 0
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
339fb92
commit cc12d5b
Showing
4 changed files
with
87 additions
and
0 deletions.
There are no files selected for viewing
Empty file.
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 |
---|---|---|
|
@@ -91,6 +91,35 @@ jobs: | |
push: ${{ github.event_name != 'pull_request' }} | ||
# Sets the target stage to build | ||
target: arranger-admin-server | ||
load: true | ||
|
||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/[email protected] | ||
with: | ||
image-ref: '${{ steps.meta.outputs.tags }}' | ||
format: 'table' | ||
severity: 'CRITICAL' | ||
exit-code: '1' | ||
hide-progress: true | ||
trivyignores: .github/.trivyignore | ||
output: scan-results.txt | ||
env: | ||
TRIVY_IGNORE_STATUS: 'will_not_fix' | ||
|
||
- name: Publish Trivy Scan Results to Summary | ||
if: always() | ||
run: | | ||
if [[ -s scan-results.txt ]]; then | ||
{ | ||
echo "### Trivy Scan Results" | ||
echo "<details><summary>Click to expand</summary>" | ||
echo "" | ||
echo '```arranger-admin-server' | ||
cat scan-results.txt | ||
echo '```' | ||
echo "</details>" | ||
} >> $GITHUB_STEP_SUMMARY | ||
fi | ||
trigger_pilot_dev_deployment: | ||
needs: [build-and-push-docker-image, get-version] | ||
|
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 |
---|---|---|
|
@@ -91,6 +91,35 @@ jobs: | |
push: ${{ github.event_name != 'pull_request' }} | ||
# Sets the target stage to build | ||
target: arranger-admin-ui | ||
load: true | ||
|
||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/[email protected] | ||
with: | ||
image-ref: '${{ steps.meta.outputs.tags }}' | ||
format: 'table' | ||
severity: 'CRITICAL' | ||
exit-code: '1' | ||
hide-progress: true | ||
trivyignores: .github/.trivyignore | ||
output: scan-results.txt | ||
env: | ||
TRIVY_IGNORE_STATUS: 'will_not_fix' | ||
|
||
- name: Publish Trivy Scan Results to Summary | ||
if: always() | ||
run: | | ||
if [[ -s scan-results.txt ]]; then | ||
{ | ||
echo "### Trivy Scan Results" | ||
echo "<details><summary>Click to expand</summary>" | ||
echo "" | ||
echo '```arranger-admin-ui' | ||
cat scan-results.txt | ||
echo '```' | ||
echo "</details>" | ||
} >> $GITHUB_STEP_SUMMARY | ||
fi | ||
trigger_pilot_dev_deployment: | ||
needs: [build-and-push-docker-image, get-version] | ||
|
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 |
---|---|---|
|
@@ -91,6 +91,35 @@ jobs: | |
push: ${{ github.event_name != 'pull_request' }} | ||
# Sets the target stage to build | ||
target: arranger-server | ||
load: true | ||
|
||
- name: Run Trivy vulnerability scanner | ||
uses: aquasecurity/[email protected] | ||
with: | ||
image-ref: '${{ steps.meta.outputs.tags }}' | ||
format: 'table' | ||
severity: 'CRITICAL' | ||
exit-code: '1' | ||
hide-progress: true | ||
trivyignores: .github/.trivyignore | ||
output: scan-results.txt | ||
env: | ||
TRIVY_IGNORE_STATUS: 'will_not_fix' | ||
|
||
- name: Publish Trivy Scan Results to Summary | ||
if: always() | ||
run: | | ||
if [[ -s scan-results.txt ]]; then | ||
{ | ||
echo "### Trivy Scan Results" | ||
echo "<details><summary>Click to expand</summary>" | ||
echo "" | ||
echo '```arranger-server-filter' | ||
cat scan-results.txt | ||
echo '```' | ||
echo "</details>" | ||
} >> $GITHUB_STEP_SUMMARY | ||
fi | ||
trigger_pilot_dev_deployment: | ||
needs: [build-and-push-docker-image, get-version] | ||
|