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 Aug 22, 2023
1 parent 0f1d27a commit 32168b4
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
1 change: 1 addition & 0 deletions checks/binary_artifact.go
Expand Up @@ -27,6 +27,7 @@ const CheckBinaryArtifacts string = "Binary-Artifacts"
//nolint
func init() {
supportedRequestTypes := []checker.RequestType{
checker.FileBased,
checker.CommitBased,
}
if err := registerCheck(CheckBinaryArtifacts, BinaryArtifacts, supportedRequestTypes); err != nil {
Expand Down
2 changes: 1 addition & 1 deletion pkg/scorecard.go
Expand Up @@ -105,7 +105,7 @@ func RunScorecard(ctx context.Context,
defer repoClient.Close()

commitSHA, err := getRepoCommitHash(repoClient)
if err != nil || commitSHA == "" {
if err != nil {
return ScorecardResult{}, err
}
defaultBranch, err := repoClient.GetDefaultBranchName()
Expand Down

0 comments on commit 32168b4

Please sign in to comment.