Skip to content

Commit

Permalink
a
Browse files Browse the repository at this point in the history
  • Loading branch information
huornlmj committed Nov 3, 2024
1 parent f263771 commit 8b245c5
Showing 1 changed file with 3 additions and 4 deletions.
7 changes: 3 additions & 4 deletions .github/workflows/nightly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -30,15 +30,14 @@ jobs:
with:
#image-ref: ${{ env.IMAGE_NAME }}
image-ref: jasonculligan/nmap-in-alpine:latest
ignore-unfixed: true # Optional: set to false to capture all vulnerabilities
format: "table" # Output format
format: "table"
exit-code: '123'


- name: Check if vulnerabilities are found
id: check_scan
run: |
# Fail the job if vulnerabilities were found
if [[ "${{ steps.scan_image.outputs.results }}" != "" ]]; then
if [[ "${{ steps.scan_image.outcome }}" == "failure" ]]; then
echo "Vulnerabilities found!"
echo "needs_rebuild=true" >> $GITHUB_ENV
else
Expand Down

0 comments on commit 8b245c5

Please sign in to comment.