diff --git a/checks/cii_best_practices_test.go b/checks/cii_best_practices_test.go index faf08d34b28e..81fe156a4623 100644 --- a/checks/cii_best_practices_test.go +++ b/checks/cii_best_practices_test.go @@ -66,21 +66,21 @@ func TestCIIBestPractices(t *testing.T) { name: "InProgressBadge", badgeLevel: clients.InProgress, expected: scut.TestReturn{ - Score: inProgressScore, + Score: 2, }, }, { name: "PassingBadge", badgeLevel: clients.Passing, expected: scut.TestReturn{ - Score: passingScore, + Score: 5, }, }, { name: "SilverBadge", badgeLevel: clients.Silver, expected: scut.TestReturn{ - Score: silverScore, + Score: 7, }, }, { diff --git a/checks/evaluation/cii_best_practices.go b/checks/evaluation/cii_best_practices.go index 593b6199687c..ee711c1ac613 100644 --- a/checks/evaluation/cii_best_practices.go +++ b/checks/evaluation/cii_best_practices.go @@ -21,6 +21,7 @@ import ( sce "github.com/ossf/scorecard/v4/errors" ) +// Note: exported for unit tests. const ( silverScore = 7 // Note: if this value is changed, please update the action's threshold score