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 3173297 commit c0335e4
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions .github/workflows/sample.yml
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ jobs:
- name: Scan files with Trivy
run: |
trivy fs . > trivy-files.txt
ls -lah
- name: Send scan reports via email
run: |
Expand All @@ -32,11 +33,10 @@ jobs:
echo "Content-Type: text/plain; charset=UTF-8" >> email.txt
echo "" >> email.txt
cat body.txt >> email.txt
sudo apt-get update
sudo apt-get install -y mailutils
cat email.txt | mail -s "Trivy Scan Report" [email protected]
mutt -s "Trivy Scan Report" -a trivy-files.txt -- [email protected] < email.txt
env:
SMTP_SERVER: smtp.gmail.com
SMTP_PORT: 587
SMTP_USERNAME: [email protected]
SMTP_PASSWORD: ${{ secrets.SMTP_PASSWORD }}

0 comments on commit c0335e4

Please sign in to comment.