Skip to content

Commit 7cd56ee

Browse files
Let scan step fail
1 parent 5b188a9 commit 7cd56ee

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

.github/workflows/build.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -375,23 +375,23 @@ jobs:
375375
-DpublishToNPM="${PUBLISH_TO_NPM}" \
376376
-DnpmPublishTrigger="${NPM_PUBLISH_TRIGGER}" \
377377
-DpublishToJBMarketplace="${PUBLISH_TO_JBPM}" \
378-
-DimageRepoBase=$IMAGE_REPO_BASE
378+
-DimageRepoBase=$IMAGE_REPO_BASE || RESULT=$?
379379
380380
{
381381
echo "leeway_sboms_dir=$sboms_dir"
382382
echo "leeway_vulnerability_reports_dir=$scans_dir"
383383
} >> $GITHUB_OUTPUT
384384
385385
cat "$scans_dir/vulnerability-summary.md" >> $GITHUB_STEP_SUMMARY
386+
387+
exit $RESULT
386388
- name: Upload SBOMs
387389
uses: actions/upload-artifact@v4
388-
if: success()
389390
with:
390391
name: sboms
391392
path: ${{ steps.scan.outputs.leeway_sboms_dir }}
392393
- name: Upload vulnerability reports
393394
uses: actions/upload-artifact@v4
394-
if: success()
395395
with:
396396
name: vulnerability-reports
397397
path: ${{ steps.scan.outputs.leeway_vulnerability_reports_dir }}
@@ -593,7 +593,7 @@ jobs:
593593
SLACK_ICON_EMOJI: ":x:"
594594
SLACK_USERNAME: "Scheduled Build"
595595
SLACK_COLOR: "danger"
596-
SLACK_MESSAGE: "Daily scheduled build failed! Please check the logs for details."
596+
SLACK_MESSAGE: "Daily scheduled build with vulnerability scan failed! Please check the logs for details."
597597
SLACK_FOOTER: "<${{ github.server_url }}/${{ github.repository }}/actions/runs/${{ github.run_id }}|View Workflow Logs>"
598598

599599
delete-runner:

0 commit comments

Comments
 (0)