From 6b5bda77650ccc0ec440c8e034d654db42a34133 Mon Sep 17 00:00:00 2001 From: Spencer Schrock Date: Mon, 25 Sep 2023 09:04:03 -0700 Subject: [PATCH] :bug: Set repo commit SHA in results after fetching successfully. (#3514) Signed-off-by: Spencer Schrock Signed-off-by: Allen Shearin --- pkg/scorecard.go | 1 + 1 file changed, 1 insertion(+) diff --git a/pkg/scorecard.go b/pkg/scorecard.go index 6cca73482bd..b8c1a4e1691 100644 --- a/pkg/scorecard.go +++ b/pkg/scorecard.go @@ -127,6 +127,7 @@ func RunScorecard(ctx context.Context, } else if err != nil { return ScorecardResult{}, err } + ret.Repo.CommitSHA = commitSHA defaultBranch, err := repoClient.GetDefaultBranchName() if err != nil {