Skip to content

Commit

Permalink
scorecard: Update usage to scorecard/v4@main
Browse files Browse the repository at this point in the history
Signed-off-by: Stephen Augustus <[email protected]>
  • Loading branch information
justaugustus committed Feb 27, 2022
1 parent 06ad92e commit 269b6a7
Showing 1 changed file with 3 additions and 5 deletions.
8 changes: 3 additions & 5 deletions pkg/policies/scorecard/scorecard.go
Original file line number Diff line number Diff line change
Expand Up @@ -30,9 +30,7 @@ import (
"github.com/ossf/scorecard/v4/checker"
"github.com/ossf/scorecard/v4/checks"
"github.com/ossf/scorecard/v4/clients"
screpo "github.com/ossf/scorecard/v4/clients/githubrepo"
docs "github.com/ossf/scorecard/v4/docs/checks"
"github.com/ossf/scorecard/v4/format"
sclog "github.com/ossf/scorecard/v4/log"
"github.com/ossf/scorecard/v4/options"
"github.com/ossf/scorecard/v4/pkg"
Expand Down Expand Up @@ -133,7 +131,7 @@ func (sc Scorecard) Check(ctx context.Context, c *github.Client, owner,
//roundTripper := c.Client().Transport

// TODO(scorecard): Fix ciiClient, vulnsClient
scRepo, repoClient, ossFuzzRepoClient, ciiClient, vulnsClient, err := screpo.GetClients(
scRepo, repoClient, ossFuzzRepoClient, ciiClient, vulnsClient, err := checker.GetClients(
ctx, scOpts.Repo, scOpts.Local, logger)
if err != nil {
return nil, err
Expand Down Expand Up @@ -187,9 +185,9 @@ func (sc Scorecard) Check(ctx context.Context, c *github.Client, owner,
fmt.Println("\nRESULTS\n-------")
}

resultsErr := format.FormatResults(
resultsErr := pkg.FormatResults(
scOpts,
repoResult,
&repoResult,
checkDocs,
pol,
)
Expand Down

0 comments on commit 269b6a7

Please sign in to comment.