Skip to content

Commit

Permalink
Update sample.yml
Browse files Browse the repository at this point in the history
  • Loading branch information
AbhilashKD authored May 2, 2024
1 parent 70c70cf commit 59ec527
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .github/workflows/sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ jobs:
echo "deb https://aquasecurity.github.io/trivy-repo/deb $(lsb_release -sc) main" | sudo tee -a /etc/apt/sources.list.d/trivy.list
sudo apt-get update
sudo apt-get install trivy
pwd
- name: Scan files with Trivy
run: |
Expand All @@ -35,7 +36,7 @@ jobs:
cat body.txt >> email.txt
sudo apt-get update
sudo apt-get install -y mutt
mutt -s "Trivy Scan Report" -a trivy-files.txt -- [email protected] < email.txt
mutt -s "Trivy Scan Report" -a ./trivy-files.txt -- [email protected] < email.txt
env:
SMTP_SERVER: smtp.gmail.com
SMTP_PORT: 587
Expand Down

0 comments on commit 59ec527

Please sign in to comment.