Skip to content

Commit

Permalink
🐛 Set repo commit SHA in results after fetching successfully. (ossf#3514
Browse files Browse the repository at this point in the history
)

Signed-off-by: Spencer Schrock <[email protected]>
Signed-off-by: Allen Shearin <[email protected]>
  • Loading branch information
spencerschrock authored and ashearin committed Nov 13, 2023
1 parent 9dbeb77 commit 6b5bda7
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 6b5bda7

Please sign in to comment.