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 a00268d commit 566fd36
Showing 1 changed file with 6 additions and 5 deletions.
11 changes: 6 additions & 5 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
Expand Up @@ -35,11 +35,12 @@ jobs:
id: count_vulnerabilities
run: |
cat 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
cat trivy-results.txt | grep Total | cut -d' ' -f2
# 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 566fd36

Please sign in to comment.