Skip to content

Commit

Permalink
Merge pull request #313 from nirmata/fix-slack-notification
Browse files Browse the repository at this point in the history
fix: slack notification not working for nightly scan
  • Loading branch information
amittiwari28 authored Dec 10, 2024
2 parents 5bcd1be + 713d65c commit efda86b
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 @@ -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 }}

0 comments on commit efda86b

Please sign in to comment.