Skip to content

Commit

Permalink
Enable Binary artifacts check for local repos (#2)
Browse files Browse the repository at this point in the history
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
  • Loading branch information
abhiseksanyal committed Nov 18, 2023
1 parent bc0efb9 commit 3369bf2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
1 change: 1 addition & 0 deletions checks/binary_artifact.go
Expand Up @@ -27,6 +27,7 @@ const CheckBinaryArtifacts string = "Binary-Artifacts"
//nolint:gochecknoinits
func init() {
supportedRequestTypes := []checker.RequestType{
checker.FileBased,
checker.CommitBased,
checker.FileBased,
}
Expand Down
4 changes: 1 addition & 3 deletions pkg/scorecard.go
Expand Up @@ -122,9 +122,7 @@ func RunScorecard(ctx context.Context,

commitSHA, err := getRepoCommitHash(repoClient)

if errors.Is(err, errEmptyRepository) {
return ret, nil
} else if err != nil {
if err != nil {
return ScorecardResult{}, err
}
ret.Repo.CommitSHA = commitSHA
Expand Down

0 comments on commit 3369bf2

Please sign in to comment.