@@ -40,15 +40,23 @@ export async function getPackage(req: Request, res: Response): Promise<void> {
4040 const scorecardScore = pkg . scorecardScore != null ? Number ( pkg . scorecardScore ) : null
4141 const mappingConfidence =
4242 pkg . repoMappingConfidence != null ? Number ( pkg . repoMappingConfidence ) : null
43+ const healthBandScore = pkg . healthScore !== null ? pkg . healthScore / 10 : scorecardScore
4344
4445 ok ( res , {
4546 purl : pkg . purl ,
4647 name : pkg . name ,
4748 ecosystem : pkg . ecosystem ,
4849 latestVersion : pkg . latestVersion ?? null ,
4950 general : {
50- healthScore : scorecardScore !== null ? Math . round ( scorecardScore * 10 ) : null ,
51- healthBand : computeHealthBand ( scorecardScore ) ,
51+ healthScore : pkg . healthScore ,
52+ healthScoreDetails : {
53+ total : pkg . healthScore ,
54+ label : pkg . healthLabel ,
55+ maintainerHealth : pkg . maintainerHealthScore ,
56+ securitySupplyChain : pkg . securitySupplyChainScore ,
57+ developmentActivity : pkg . developmentActivityScore ,
58+ } ,
59+ healthBand : computeHealthBand ( healthBandScore ) ,
5260 impact : {
5361 impactScore :
5462 pkg . criticalityScore != null ? Math . round ( Number ( pkg . criticalityScore ) * 100 ) : null ,
@@ -58,7 +66,7 @@ export async function getPackage(req: Request, res: Response): Promise<void> {
5866 transitiveReach : pkg . transitiveReach ,
5967 } ,
6068 riskSignals : {
61- lifecycle : null ,
69+ lifecycle : pkg . lifecycleLabel ,
6270 maintainerBusFactor : pkg . maintainerCount ,
6371 lastRelease : pkg . latestReleaseAt ? pkg . latestReleaseAt . toISOString ( ) : null ,
6472 hasSecurityFile : pkg . hasSecurityFile ,
@@ -67,6 +75,7 @@ export async function getPackage(req: Request, res: Response): Promise<void> {
6775 openSSFScorecard : scorecardScore ,
6876 } ,
6977 } ,
78+ signalCoverageHealth : pkg . signalCoverageHealth ,
7079 assessment : null ,
7180 security : {
7281 securityContacts : null ,
0 commit comments