Commit 3f0df8e
committed
Post a Slack scan summary from the demo workflow
Add an optional step (7) to nightvision.yml that posts a one-line summary of
the DAST scan to a Slack Incoming Webhook: on success, the finding counts
(total, critical, high) parsed from results.sarif plus links to the GitHub
code-scanning tab and the run; on failure, the job status and run link.
- Gated on a SLACK_WEBHOOK_URL secret (mapped to env) so the step is skipped,
and the scan still passes, when Slack is not configured.
- Uses curl against the webhook with a jq-built (escaped) JSON payload; no
third-party action and no token-based importer to maintain.
- Runs with always() so a failed scan still notifies.1 parent d8659b6 commit 3f0df8e
1 file changed
Lines changed: 26 additions & 0 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
34 | 34 | | |
35 | 35 | | |
36 | 36 | | |
| 37 | + | |
| 38 | + | |
| 39 | + | |
37 | 40 | | |
38 | 41 | | |
39 | 42 | | |
| |||
89 | 92 | | |
90 | 93 | | |
91 | 94 | | |
| 95 | + | |
| 96 | + | |
| 97 | + | |
| 98 | + | |
| 99 | + | |
| 100 | + | |
| 101 | + | |
| 102 | + | |
| 103 | + | |
| 104 | + | |
| 105 | + | |
| 106 | + | |
| 107 | + | |
| 108 | + | |
| 109 | + | |
| 110 | + | |
| 111 | + | |
| 112 | + | |
| 113 | + | |
| 114 | + | |
| 115 | + | |
| 116 | + | |
| 117 | + | |
0 commit comments