Skip to content

Commit

Permalink
Update main.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
iCloudBot authored May 7, 2024
1 parent 6869b22 commit d148c7e
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -39,8 +39,8 @@ jobs:
else
echo "File does not contain"
fi
critical_count=$(grep '123456' trivy-results.txt | wc -l)
high_count=$(grep '123456' trivy-results.txt | wc -l)
critical_count=$(grep 'CRITICAL' trivy-results.txt | wc -l)
high_count=$(grep 'HIGH' trivy-results.txt | wc -l)
total_count=$(($critical_count + $high_count))
echo "total=$total_count" >> "$GITHUB_OUTPUT"
echo $total_count
Expand All @@ -50,7 +50,7 @@ jobs:
# Upload the report produced in step 2 to the Slack channel.
send-message:
needs: [security-scan]
if: ${{ needs.security-scan.outputs.total > 0 }}
if: ${{ needs.security-scan.outputs.total > 1 }}
runs-on: ubuntu-latest
steps:
- name: test
Expand Down

0 comments on commit d148c7e

Please sign in to comment.