Skip to content

Commit 196d725

Browse files
authored
UID2-4528 report failures on scheduled vulnerability detection runs (#32)
* Add vulnerability scan * Change image to fs * Fix typo * Remove push used for testing in vulnerability scan
1 parent 32747d0 commit 196d725

File tree

1 file changed

+23
-0
lines changed

1 file changed

+23
-0
lines changed
Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
name: Vulnerability Scan Failure Slack Notify
2+
on:
3+
workflow_dispatch:
4+
inputs:
5+
vulnerability_severity:
6+
description: The severity to fail the workflow if such vulnerability is detected. DO NOT override it unless a Jira ticket is raised. DO NOT use 'CRITICAL' unless a Jira ticket is raised.
7+
type: choice
8+
options:
9+
- CRITICAL,HIGH
10+
- CRITICAL,HIGH,MEDIUM
11+
- CRITICAL
12+
default: 'CRITICAL,HIGH'
13+
schedule:
14+
- cron: '0 16 * * *' # 9:00 AM GMT -7
15+
- cron: '0 0 * * *' # 5:00 PM GMT -7
16+
17+
jobs:
18+
vulnerability-scan-failure-notify:
19+
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-vulnerability-scan-failure-notify.yaml@v3
20+
secrets:
21+
SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
22+
with:
23+
scan_type : fs

0 commit comments

Comments
 (0)