CM-68446: Render unmaintained package detections in SCA output - #523
Closed
AradTraub wants to merge 5 commits into
Closed
CM-68446: Render unmaintained package detections in SCA output#523AradTraub wants to merge 5 commits into
AradTraub wants to merge 5 commits into
Conversation
omer-roth
reviewed
Aug 25, 2026
| table.add_cell(LICENSE_COLUMN, detection_details.get('license')) | ||
|
|
||
| ossf_score = get_ossf_score(detection_details) | ||
| table.add_cell(OSSF_SCORE_COLUMN, 'N/A' if ossf_score is None else str(ossf_score)) |
Collaborator
There was a problem hiding this comment.
Is this the overall ossf score or the maintained check's score?
Contributor
Author
There was a problem hiding this comment.
The overall score.
omer-roth
reviewed
Aug 25, 2026
| 'report': ctx.obj.get('report'), | ||
| 'package_vulnerabilities': ctx.obj.get('package-vulnerabilities'), | ||
| 'license_compliance': ctx.obj.get('license-compliance'), | ||
| 'maintainability': ctx.obj.get('unmaintained-packages'), |
Collaborator
There was a problem hiding this comment.
overall might be worth checking:
What happens if the policy is off and the user specified they want to scan unmaintained-packages specifically?
Contributor
Author
There was a problem hiding this comment.
they will get 0 detections. as the policy is close and this the maintainability will be align, there will be no detection found as the rest of the detection will be filtered out and maintainability will skipped due to the fact that the policy is close
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Renders unmaintained-package findings (OpenSSF Scorecard score <= 2) in local SCA scan output. Until now they arrived with an unrecognised policy id and fell through to a table titled "Unknown" with vulnerability-shaped columns.
ossfdetection detail (ossf.score,ossf.scorecard_report_url); the flatossf_scorecard_scorefield no longer exists.No new CLI flag. Whether the policy runs is decided entirely by the tenant's policy state, resolved server-side in dependency-collector — the CLI neither sends nor needs a scan parameter for it. An earlier revision of this branch added a
--sca-scan unmaintained-packagesvalue; it was reverted once the gate moved to the policy, so this PR is rendering only.Testing
ruff check+ruff format --checkclean.pytest: 999 passed, 1 skipped, including new tests for the printer's title, its exact column set and order, and the score fallback when no scorecard is present.Jira
CM-68446