Skip to content

[Trivy] scan alert report #91

[Trivy] scan alert report

[Trivy] scan alert report #91

name: "[Trivy] scan alert report"
defaults:
run:
shell: bash
on:
schedule:
- cron: 0 10 * * 1-5
jobs:
trivy_scan_alert_report:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@cbb722410c2e876e24abbe8de2cc27693e501dcb # pin@v3
- name: install python
uses: actions/setup-python@55aad42e4674b58b2b2fb7d8e7552402d922b4e7 # [email protected]
with:
python-version: '3.10'
cache: 'pip'
- name: install requirements
run: pip install -r ./scripts/pipeline/generate_trivy_report/requirements.txt
- name: send report to slack
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
SLACK_WEBHOOK: ${{ secrets.PROD_SLACK_WEB_HOOK }}
run: |
python ./scripts/pipeline/generate_trivy_report/code_scan_report.py