Skip to content

Add clarity-based compliance support#1684

Closed
NucleonGodX wants to merge 1 commit into
aboutcode-org:mainfrom
NucleonGodX:clarity-policies
Closed

Add clarity-based compliance support#1684
NucleonGodX wants to merge 1 commit into
aboutcode-org:mainfrom
NucleonGodX:clarity-policies

Conversation

@NucleonGodX
Copy link
Copy Markdown
Contributor

This PR adds support for evaluating license clarity scores against compliance policies. Now threshold-based policies for license clarity scores can be defined.

I've extended the policy system to handle both license and clarity policies in the same policies.yml file and updated the summary generation to evaluate clarity scores against defined thresholds. Now a clarity_compliance_alert field is injected into the summary output based on the evaluation results. Policies can be setup, like requiring a minimum clarity score of 95, with anything below triggering an error alert.

This only works with the scan_single_package pipeline since that's the only one that generates clarity scores. The compliance alerts will show up in the summary.json file.

Signed-off-by: NucleonGodX <racerpro41@gmail.com>
@NucleonGodX NucleonGodX changed the title initial push to add clarity-based compliance support Add clarity-based compliance support Jun 9, 2025
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.

1 participant