Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

UID2-4528 report failures on scheduled vulnerability detection runs #1557

Open
wants to merge 3 commits into
base: main
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 24 additions & 0 deletions .github/workflows/vulnerability-scan-failure-notify.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
name: Vulnerability Scan Failure Slack Notify
on:
workflow_dispatch:
inputs:
vulnerability_severity:
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.
type: choice
options:
- CRITICAL,HIGH
- CRITICAL,HIGH,MEDIUM
- CRITICAL
default: 'CRITICAL,HIGH'
schedule:
- cron: '0 16 * * *' # 9:00 AM GMT -7
- cron: '0 0 * * *' # 5:00 PM GMT -7

jobs:
vulnerability-scan-failure-notify:
uses: IABTechLab/uid2-shared-actions/.github/workflows/shared-vulnerability-scan-failure-notify.yaml@v3
secrets:
SLACK_WEBHOOK : ${{ secrets.SLACK_WEBHOOK }}
with:
scan_type : image
java_version: "21"