Skip to content

Commit

Permalink
feat: snyk pipeline
Browse files Browse the repository at this point in the history
  • Loading branch information
DevRico003 committed Feb 28, 2024
1 parent 7f131aa commit a16bd33
Showing 1 changed file with 6 additions and 3 deletions.
9 changes: 6 additions & 3 deletions .github/workflows/ci-cd.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,11 @@ jobs:
with:
args: --severity-threshold=high --json > snyk_report.json

- name: Prepare Snyk report
run: |
echo "Snyk report:" > mail_body.txt
cat snyk_report.json >> mail_body.txt
- name: Send Snyk report
if: failure()
uses: dawidd6/action-send-mail@v3
Expand All @@ -45,6 +50,4 @@ jobs:
subject: Snyk Report
to: ${{secrets.MAIL}}
from: ${{secrets.MAIL_USERNAME}}
body: |
Snyk report:
$(cat snyk_report.json)
body: ${{join('', steps.read.outputs.text)}}

0 comments on commit a16bd33

Please sign in to comment.