Skip to content

Commit

Permalink
🐛 Set repo commit SHA in results after fetching successfully. (#3514)
Browse files Browse the repository at this point in the history
Signed-off-by: Spencer Schrock <[email protected]>
  • Loading branch information
spencerschrock authored Sep 25, 2023
1 parent fd12f6a commit bbd673c
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 bbd673c

Please sign in to comment.