Skip to content

Commit 35ceedd

Browse files
abhiseksanyalAbhisek Sanyal
andcommitted
Enable Binary artifacts check for local repos (#2)
Enable Binary artifacts check for local repositories that was disabled in the PR ossf#2039 and revert the change done for empty repository handling in the PR ossf#2207 Co-authored-by: Abhisek Sanyal <abhisek@veedna.com>
1 parent b78f978 commit 35ceedd

File tree

2 files changed

+2
-1
lines changed

2 files changed

+2
-1
lines changed

checks/binary_artifact.go

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,7 @@ const CheckBinaryArtifacts string = "Binary-Artifacts"
2727
//nolint
2828
func init() {
2929
supportedRequestTypes := []checker.RequestType{
30+
checker.FileBased,
3031
checker.CommitBased,
3132
}
3233
if err := registerCheck(CheckBinaryArtifacts, BinaryArtifacts, supportedRequestTypes); err != nil {

pkg/scorecard.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -105,7 +105,7 @@ func RunScorecard(ctx context.Context,
105105
defer repoClient.Close()
106106

107107
commitSHA, err := getRepoCommitHash(repoClient)
108-
if err != nil || commitSHA == "" {
108+
if err != nil {
109109
return ScorecardResult{}, err
110110
}
111111
defaultBranch, err := repoClient.GetDefaultBranchName()

0 commit comments

Comments
 (0)