Skip to content

Commit

Permalink
add outcome validation
Browse files Browse the repository at this point in the history
  • Loading branch information
EddeCCC committed Dec 2, 2024
1 parent 4f31d6d commit 1930e9f
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion .github/workflows/security_check.yml
Original file line number Diff line number Diff line change
Expand Up @@ -42,4 +42,9 @@ jobs:
webhook-type: incoming-webhook
payload: |
text: "*Baselining Dependency-Check Report*: ${{ job.status }}\nPlease check the report here: https://github.com/${{ github.repository }}/actions/runs/${{ github.run_id }}"
# if DependencyCheck failed, the job should also fail, but only after the results were uploaded
- name: Validate DependencyCheck outcome
if: ${{ steps.depcheck.outcome == 'failure' }}
run: |
echo "DependencyCheck failed"
exit 1

0 comments on commit 1930e9f

Please sign in to comment.