Skip to content

Commit

Permalink
feat: added slack notification for nightly scan failure
Browse files Browse the repository at this point in the history
Signed-off-by: Ved Ratan <[email protected]>
  • Loading branch information
VedRatan committed Dec 2, 2024
1 parent b2de6b6 commit 6b12021
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions .github/workflows/nightly-scan.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -88,3 +88,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}} - ${{ steps.extract_branch.outputs.branch }} Environment - nightly-scan
SLACK_TITLE: CVE discovered
SLACK_USERNAME: Github Actions
SLACK_WEBHOOK: https://hooks.slack.com/services/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

0 comments on commit 6b12021

Please sign in to comment.