Skip to content

Commit

Permalink
Set repo commit SHA in results after fetching successfully.
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Schrock <[email protected]>
  • Loading branch information
spencerschrock committed Sep 25, 2023
1 parent fd12f6a commit 336637d
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions pkg/scorecard.go
Original file line number Diff line number Diff line change
Expand Up @@ -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 {
Expand Down

0 comments on commit 336637d

Please sign in to comment.