Skip to content

Conversation

@caroline-ttd
Copy link
Contributor

@caroline-ttd caroline-ttd commented Feb 26, 2025

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:

Screenshot 2025-03-11 at 12 33 04 AM

default: 'true'
slack_webhook:
description: 'The Slack webhook URL for sending messages via incoming webhooks, configured for #dev-uid2-alarms channel'
required: true
Copy link
Contributor

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.

@caroline-ttd caroline-ttd marked this pull request as ready for review March 6, 2025 19:22
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
Copy link
Contributor

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.

@caroline-ttd caroline-ttd merged commit 4894973 into main Mar 11, 2025
3 checks passed
@caroline-ttd caroline-ttd deleted the ccm-UID2-4528-report-faillures-on-scheduled-vulnerability-detection-runs branch March 13, 2025 00:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants