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 481b656 commit eb6aa8d
Showing 1 changed file with 3 additions and 2 deletions.
5 changes: 3 additions & 2 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,10 +34,11 @@ jobs:
- name: Count Critical and High vulnerabilities
id: count_vulnerabilities
run: |
critical_count=$(grep -c 'CRITICAL' trivy-results.txt)
high_count=$(grep -c 'HIGH' trivy-results.txt)
critical_count=$(grep -c '123456' trivy-results.txt)
high_count=$(grep -c '123456' trivy-results.txt)
total_count=$(($critical_count + $high_count))
echo "total=$total_count" >> "$GITHUB_OUTPUT"
echo $total_count
# 3.If any vulnerabilities are found in the code base,
# send a message to the provided Slack channel.
Expand Down

0 comments on commit eb6aa8d

Please sign in to comment.