Skip to content

[Trivy] scan alert report #60

[Trivy] scan alert report

[Trivy] scan alert report #60

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@3b9b8c884f6b4bb4d5be2779c26374abadae0871 # pin@v3
- name: install python
uses: actions/setup-python@55aad42e4674b58b2b2fb7d8e7552402d922b4e7 # pin@v4.2.0
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