diff --git a/.github/workflows/nightly-scan.yaml b/.github/workflows/nightly-scan.yaml index c96bc89..fc3530f 100644 --- a/.github/workflows/nightly-scan.yaml +++ b/.github/workflows/nightly-scan.yaml @@ -74,3 +74,15 @@ jobs: echo "====grype-scan====" cat ${{ steps.grype-scan.outputs.sarif }} exit 1 + + - name: Notify failure status + if: always() && (job.status == 'failure') + uses: rtCamp/action-slack-notify@c33737706dea87cd7784c687dadc9adf1be59990 #v2.3.2 + env: + SLACK_CHANNEL: cve-nightly-scan-alerts + SLACK_COLOR: ${{ job.status }} + SLACK_ICON: https://cdn-icons-png.flaticon.com/512/25/25231.png + SLACK_MESSAGE: Repository - ${{github.repository}} - main Environment - nightly-scan + SLACK_TITLE: CVE discovered + SLACK_USERNAME: Github Actions + SLACK_WEBHOOK: ${{ secrets.NIGHTLY_SCAN_WEBHOOK }} \ No newline at end of file