-
Notifications
You must be signed in to change notification settings - Fork 1
UID2-4528 Report faillures on scheduled vulnerability detection runs #152
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 faillures on scheduled vulnerability detection runs #152
Conversation
| default: 'true' | ||
| slack_webhook: | ||
| description: 'The Slack webhook URL for sending messages via incoming webhooks, configured for #dev-uid2-alarms channel' | ||
| required: true |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If we set this to required:true it will break other pipelines using this workflow. Maybe instead provide it with a default value.
| id: vulnerability-scan | ||
| uses: IABTechLab/uid2-shared-actions/actions/vulnerability_scan@ccm-UID2-4528-report-faillures-on-scheduled-vulnerability-detection-runs # todo change to v3 before merging | ||
| with: | ||
| scan_severity: HIGH,CRITICAL |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Why do we hardcode this to be HIGH,CRITICAL? Let's either use inputs.vulnerability_severity or use an empty string (for it to scan for all the vulnerabilities.
Report faillures on scheduled vulnerability detection runs
Although some repos are still using vulnerability_scan_filesystem , that is a history issue . Our goal is utilize vulnerability_scan while eliminating vulnerability_scan_filesystem. To achieve this, I refactored my code to rely solely on vulnerability_scan.
I set up three repository workflows for testing, and they are functioning as expected:
For image action succeeded: MR, Action
For image action failed: MR, Action
For fs action succeeded: MR, Action
Slack message example: