🌱 Fix the go.mod with v2 upgrade (#716)

The go.mod and the related files weren't t updated with the v2 upgrade.

https://github.com/ossf/scorecard/issues/711

This fix will address the issue.
This commit is contained in:
Naveen 2021-07-26 13:01:25 -05:00 committed by GitHub
parent d6cf4b36bf
commit 4d7fb5d748
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
81 changed files with 180 additions and 188 deletions

View File

@ -21,7 +21,7 @@ import (
"github.com/google/go-github/v32/github" "github.com/google/go-github/v32/github"
"github.com/shurcooL/githubv4" "github.com/shurcooL/githubv4"
"github.com/ossf/scorecard/clients" "github.com/ossf/scorecard/v2/clients"
) )
type CheckRequest struct { type CheckRequest struct {

View File

@ -20,7 +20,7 @@ import (
"math" "math"
"strings" "strings"
scorecarderrors "github.com/ossf/scorecard/errors" scorecarderrors "github.com/ossf/scorecard/v2/errors"
) )
// UPGRADEv2: to remove. // UPGRADEv2: to remove.

View File

@ -23,8 +23,8 @@ import (
opencensusstats "go.opencensus.io/stats" opencensusstats "go.opencensus.io/stats"
"go.opencensus.io/tag" "go.opencensus.io/tag"
scorecarderrors "github.com/ossf/scorecard/errors" scorecarderrors "github.com/ossf/scorecard/v2/errors"
"github.com/ossf/scorecard/stats" "github.com/ossf/scorecard/v2/stats"
) )
const checkRetries = 3 const checkRetries = 3

View File

@ -20,8 +20,8 @@ import (
"github.com/google/go-github/v32/github" "github.com/google/go-github/v32/github"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
const ( const (

View File

@ -14,7 +14,7 @@
package checks package checks
import "github.com/ossf/scorecard/checker" import "github.com/ossf/scorecard/v2/checker"
// AllChecks is the list of all security checks that will be run. // AllChecks is the list of all security checks that will be run.
var AllChecks = checker.CheckNameToFnMap{} var AllChecks = checker.CheckNameToFnMap{}

View File

@ -17,7 +17,7 @@ package checks
import ( import (
"strings" "strings"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
) )
const CheckAutomaticDependencyUpdate = "Automatic-Dependency-Update" const CheckAutomaticDependencyUpdate = "Automatic-Dependency-Update"

View File

@ -21,8 +21,8 @@ import (
"github.com/h2non/filetype" "github.com/h2non/filetype"
"github.com/h2non/filetype/types" "github.com/h2non/filetype/types"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
const CheckBinaryArtifacts string = "Binary-Artifacts" const CheckBinaryArtifacts string = "Binary-Artifacts"

View File

@ -21,8 +21,8 @@ import (
"github.com/google/go-github/v32/github" "github.com/google/go-github/v32/github"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
const ( const (

View File

@ -21,9 +21,9 @@ import (
"github.com/google/go-github/v32/github" "github.com/google/go-github/v32/github"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
type mockRepos struct { type mockRepos struct {

View File

@ -19,8 +19,8 @@ import (
"path" "path"
"strings" "strings"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
// IsMatchingPath uses 'pattern' to shell-match the 'path' and its filename // IsMatchingPath uses 'pattern' to shell-match the 'path' and its filename

View File

@ -15,7 +15,7 @@
package checks package checks
import ( import (
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
) )
// CheckIfFileExists downloads the tar of the repository and calls the onFile() to check // CheckIfFileExists downloads the tar of the repository and calls the onFile() to check

View File

@ -20,8 +20,8 @@ import (
"github.com/google/go-github/v32/github" "github.com/google/go-github/v32/github"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
// States for which CI system is in use. // States for which CI system is in use.

View File

@ -21,8 +21,8 @@ import (
"net/http" "net/http"
"strings" "strings"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
// CheckCIIBestPractices is the registered name for CIIBestPractices. // CheckCIIBestPractices is the registered name for CIIBestPractices.

View File

@ -20,8 +20,8 @@ import (
"github.com/google/go-github/v32/github" "github.com/google/go-github/v32/github"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
// CheckCodeReview is the registered name for DoesCodeReview. // CheckCodeReview is the registered name for DoesCodeReview.

View File

@ -20,8 +20,8 @@ import (
"github.com/google/go-github/v32/github" "github.com/google/go-github/v32/github"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
const ( const (

View File

@ -22,8 +22,8 @@ import (
"github.com/moby/buildkit/frontend/dockerfile/parser" "github.com/moby/buildkit/frontend/dockerfile/parser"
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
// CheckFrozenDeps is the registered name for FrozenDeps. // CheckFrozenDeps is the registered name for FrozenDeps.

View File

@ -19,9 +19,9 @@ import (
"io/ioutil" "io/ioutil"
"testing" "testing"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
func TestGithubWorkflowPinning(t *testing.T) { func TestGithubWorkflowPinning(t *testing.T) {

View File

@ -19,8 +19,8 @@ import (
"github.com/google/go-github/v32/github" "github.com/google/go-github/v32/github"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
// CheckFuzzing is the registered name for Fuzzing. // CheckFuzzing is the registered name for Fuzzing.

View File

@ -22,8 +22,8 @@ import (
"github.com/google/go-github/v32/github" "github.com/google/go-github/v32/github"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
// CheckPackaging is the registered name for Packaging. // CheckPackaging is the registered name for Packaging.

View File

@ -20,8 +20,8 @@ import (
"gopkg.in/yaml.v2" "gopkg.in/yaml.v2"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
const CheckPermissions = "Token-Permissions" const CheckPermissions = "Token-Permissions"

View File

@ -19,8 +19,8 @@ import (
"io/ioutil" "io/ioutil"
"testing" "testing"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
//nolint //nolint

View File

@ -20,8 +20,8 @@ import (
"github.com/google/go-github/v32/github" "github.com/google/go-github/v32/github"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
// CheckPullRequests is the registered name for PullRequests. // CheckPullRequests is the registered name for PullRequests.

View File

@ -19,8 +19,8 @@ import (
"github.com/google/go-github/v32/github" "github.com/google/go-github/v32/github"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
// CheckSAST is the registered name for SAST. // CheckSAST is the registered name for SAST.

View File

@ -17,8 +17,8 @@ package checks
import ( import (
"strings" "strings"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/clients/githubrepo" "github.com/ossf/scorecard/v2/clients/githubrepo"
) )
// CheckSecurityPolicy is the registred name for SecurityPolicy. // CheckSecurityPolicy is the registred name for SecurityPolicy.

View File

@ -26,8 +26,8 @@ import (
"mvdan.cc/sh/v3/syntax" "mvdan.cc/sh/v3/syntax"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
// List of interpreters. // List of interpreters.

View File

@ -20,8 +20,8 @@ import (
"github.com/google/go-github/v32/github" "github.com/google/go-github/v32/github"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
const ( const (

View File

@ -19,8 +19,8 @@ import (
"github.com/shurcooL/githubv4" "github.com/shurcooL/githubv4"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
const ( const (

View File

@ -23,8 +23,8 @@ import (
"github.com/google/go-github/v32/github" "github.com/google/go-github/v32/github"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
const ( const (

View File

@ -21,7 +21,7 @@ import (
"github.com/google/go-github/v32/github" "github.com/google/go-github/v32/github"
"github.com/shurcooL/githubv4" "github.com/shurcooL/githubv4"
"github.com/ossf/scorecard/clients" "github.com/ossf/scorecard/v2/clients"
) )
type Client struct { type Client struct {

View File

@ -20,8 +20,8 @@ import (
"github.com/shurcooL/githubv4" "github.com/shurcooL/githubv4"
"github.com/ossf/scorecard/clients" "github.com/ossf/scorecard/v2/clients"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
) )
const ( const (

View File

@ -32,12 +32,12 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"go.uber.org/zap" "go.uber.org/zap"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
"github.com/ossf/scorecard/clients/githubrepo" "github.com/ossf/scorecard/v2/clients/githubrepo"
"github.com/ossf/scorecard/pkg" "github.com/ossf/scorecard/v2/pkg"
"github.com/ossf/scorecard/repos" "github.com/ossf/scorecard/v2/repos"
"github.com/ossf/scorecard/roundtripper" "github.com/ossf/scorecard/v2/roundtripper"
) )
var ( var (

View File

@ -27,11 +27,11 @@ import (
"github.com/spf13/cobra" "github.com/spf13/cobra"
"go.uber.org/zap" "go.uber.org/zap"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
"github.com/ossf/scorecard/clients/githubrepo" "github.com/ossf/scorecard/v2/clients/githubrepo"
"github.com/ossf/scorecard/pkg" "github.com/ossf/scorecard/v2/pkg"
"github.com/ossf/scorecard/repos" "github.com/ossf/scorecard/v2/repos"
"github.com/ossf/scorecard/roundtripper" "github.com/ossf/scorecard/v2/roundtripper"
) )
//nolint:gochecknoinits //nolint:gochecknoinits

View File

@ -21,8 +21,8 @@ import (
"strings" "strings"
"time" "time"
"github.com/ossf/scorecard/cron/config" "github.com/ossf/scorecard/v2/cron/config"
"github.com/ossf/scorecard/cron/data" "github.com/ossf/scorecard/v2/cron/data"
) )
type shardSummary struct { type shardSummary struct {

View File

@ -22,7 +22,7 @@ import (
"cloud.google.com/go/bigquery" "cloud.google.com/go/bigquery"
"github.com/ossf/scorecard/cron/config" "github.com/ossf/scorecard/v2/cron/config"
) )
const partitionDateFormat = "20060102" const partitionDateFormat = "20060102"

View File

@ -23,9 +23,9 @@ import (
"google.golang.org/protobuf/types/known/timestamppb" "google.golang.org/protobuf/types/known/timestamppb"
"github.com/ossf/scorecard/cron/config" "github.com/ossf/scorecard/v2/cron/config"
"github.com/ossf/scorecard/cron/data" "github.com/ossf/scorecard/v2/cron/data"
"github.com/ossf/scorecard/cron/pubsub" "github.com/ossf/scorecard/v2/cron/pubsub"
) )
func PublishToRepoRequestTopic(ctx context.Context, iter data.Iterator, datetime time.Time) (int32, error) { func PublishToRepoRequestTopic(ctx context.Context, iter data.Iterator, datetime time.Time) (int32, error) {

View File

@ -19,8 +19,8 @@ import (
"fmt" "fmt"
"os" "os"
"github.com/ossf/scorecard/cron/data" "github.com/ossf/scorecard/v2/cron/data"
"github.com/ossf/scorecard/repos" "github.com/ossf/scorecard/v2/repos"
) )
// Script to add new project repositories to the projects.csv file: // Script to add new project repositories to the projects.csv file:

View File

@ -21,8 +21,8 @@ import (
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/google/go-cmp/cmp/cmpopts" "github.com/google/go-cmp/cmp/cmpopts"
"github.com/ossf/scorecard/cron/data" "github.com/ossf/scorecard/v2/cron/data"
"github.com/ossf/scorecard/repos" "github.com/ossf/scorecard/v2/repos"
) )
func isLessThanRepoURL(x, y repos.RepoURL) bool { func isLessThanRepoURL(x, y repos.RepoURL) bool {

View File

@ -26,7 +26,7 @@ import (
// Needed to link in GCP drivers. // Needed to link in GCP drivers.
_ "gocloud.dev/blob/gcsblob" _ "gocloud.dev/blob/gcsblob"
"github.com/ossf/scorecard/cron/config" "github.com/ossf/scorecard/v2/cron/config"
) )
const ( const (

View File

@ -22,7 +22,7 @@ import (
"github.com/jszwec/csvutil" "github.com/jszwec/csvutil"
"github.com/ossf/scorecard/repos" "github.com/ossf/scorecard/v2/repos"
) )
type Iterator interface { type Iterator interface {

View File

@ -21,7 +21,7 @@ import (
"github.com/google/go-cmp/cmp" "github.com/google/go-cmp/cmp"
"github.com/ossf/scorecard/repos" "github.com/ossf/scorecard/v2/repos"
) )
type outcome struct { type outcome struct {

View File

@ -18,7 +18,7 @@ package ossf.scorecard.cron.data;
import "google/protobuf/timestamp.proto"; import "google/protobuf/timestamp.proto";
option go_package = "github.com/ossf/scorecard/cron/data"; option go_package = "github.com/ossf/scorecard/v2/cron/data";
message ScorecardBatchRequest { message ScorecardBatchRequest {
repeated string repos = 1; repeated string repos = 1;

View File

@ -30,8 +30,8 @@ import (
"github.com/google/go-github/v33/github" "github.com/google/go-github/v33/github"
"golang.org/x/tools/go/vcs" "golang.org/x/tools/go/vcs"
"github.com/ossf/scorecard/cron/data" "github.com/ossf/scorecard/v2/cron/data"
"github.com/ossf/scorecard/repos" "github.com/ossf/scorecard/v2/repos"
) )
var ( var (

View File

@ -18,7 +18,7 @@ import (
"bytes" "bytes"
"os" "os"
"github.com/ossf/scorecard/cron/data" "github.com/ossf/scorecard/v2/cron/data"
) )
// Updates projects repositories with a projects dependencies. // Updates projects repositories with a projects dependencies.

View File

@ -18,7 +18,7 @@ import (
"log" "log"
"os" "os"
"github.com/ossf/scorecard/cron/data" "github.com/ossf/scorecard/v2/cron/data"
) )
// Validates data.Iterator used by production PubSub cron job. // Validates data.Iterator used by production PubSub cron job.

View File

@ -22,7 +22,7 @@ import (
"github.com/jszwec/csvutil" "github.com/jszwec/csvutil"
"github.com/ossf/scorecard/repos" "github.com/ossf/scorecard/v2/repos"
) )
func repoFormatFromRepoURL(repoURLs []repos.RepoURL) []repoFormat { func repoFormatFromRepoURL(repoURLs []repos.RepoURL) []repoFormat {

View File

@ -18,7 +18,7 @@ import (
"bytes" "bytes"
"testing" "testing"
"github.com/ossf/scorecard/repos" "github.com/ossf/scorecard/v2/repos"
) )
func TestCsvWriter(t *testing.T) { func TestCsvWriter(t *testing.T) {

View File

@ -23,7 +23,7 @@ import (
"contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/gcp" "contrib.go.opencensus.io/exporter/stackdriver/monitoredresource/gcp"
"go.opencensus.io/stats/view" "go.opencensus.io/stats/view"
"github.com/ossf/scorecard/cron/config" "github.com/ossf/scorecard/v2/cron/config"
) )
var errorUndefinedExporter = errors.New("unsupported exporterType") var errorUndefinedExporter = errors.New("unsupported exporterType")

View File

@ -28,7 +28,7 @@ import (
_ "gocloud.dev/pubsub/gcppubsub" _ "gocloud.dev/pubsub/gcppubsub"
"google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/encoding/protojson"
"github.com/ossf/scorecard/cron/data" "github.com/ossf/scorecard/v2/cron/data"
) )
var errorPublish = errors.New("total errors when publishing") var errorPublish = errors.New("total errors when publishing")

View File

@ -21,7 +21,7 @@ import (
"gocloud.dev/pubsub" "gocloud.dev/pubsub"
"github.com/ossf/scorecard/cron/data" "github.com/ossf/scorecard/v2/cron/data"
) )
type mockSucceedTopic struct{} type mockSucceedTopic struct{}

View File

@ -21,7 +21,7 @@ import (
"google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/encoding/protojson"
"github.com/ossf/scorecard/cron/data" "github.com/ossf/scorecard/v2/cron/data"
) )
// ErrorInParse indicates there was an error while unmarshalling the protocol buffer message. // ErrorInParse indicates there was an error while unmarshalling the protocol buffer message.

View File

@ -24,7 +24,7 @@ import (
pubsub "cloud.google.com/go/pubsub/apiv1" pubsub "cloud.google.com/go/pubsub/apiv1"
pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1" pubsubpb "google.golang.org/genproto/googleapis/pubsub/v1"
"github.com/ossf/scorecard/cron/data" "github.com/ossf/scorecard/v2/cron/data"
) )
const ( const (

View File

@ -24,7 +24,7 @@ import (
// Needed to link in GCP drivers. // Needed to link in GCP drivers.
_ "gocloud.dev/pubsub/gcppubsub" _ "gocloud.dev/pubsub/gcppubsub"
"github.com/ossf/scorecard/cron/data" "github.com/ossf/scorecard/v2/cron/data"
) )
type receiver interface { type receiver interface {

View File

@ -23,7 +23,7 @@ import (
"google.golang.org/protobuf/encoding/protojson" "google.golang.org/protobuf/encoding/protojson"
"google.golang.org/protobuf/proto" "google.golang.org/protobuf/proto"
"github.com/ossf/scorecard/cron/data" "github.com/ossf/scorecard/v2/cron/data"
) )
type mockReceiver struct { type mockReceiver struct {

View File

@ -31,18 +31,18 @@ import (
"go.uber.org/zap" "go.uber.org/zap"
"go.uber.org/zap/zapcore" "go.uber.org/zap/zapcore"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
"github.com/ossf/scorecard/clients" "github.com/ossf/scorecard/v2/clients"
"github.com/ossf/scorecard/clients/githubrepo" "github.com/ossf/scorecard/v2/clients/githubrepo"
"github.com/ossf/scorecard/cron/config" "github.com/ossf/scorecard/v2/cron/config"
"github.com/ossf/scorecard/cron/data" "github.com/ossf/scorecard/v2/cron/data"
"github.com/ossf/scorecard/cron/monitoring" "github.com/ossf/scorecard/v2/cron/monitoring"
"github.com/ossf/scorecard/cron/pubsub" "github.com/ossf/scorecard/v2/cron/pubsub"
"github.com/ossf/scorecard/pkg" "github.com/ossf/scorecard/v2/pkg"
"github.com/ossf/scorecard/repos" "github.com/ossf/scorecard/v2/repos"
"github.com/ossf/scorecard/roundtripper" "github.com/ossf/scorecard/v2/roundtripper"
"github.com/ossf/scorecard/stats" "github.com/ossf/scorecard/v2/stats"
) )
var errIgnore *clients.ErrRepoUnavailable var errIgnore *clients.ErrRepoUnavailable

View File

@ -21,9 +21,9 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
var _ = Describe("E2E TEST:Active", func() { var _ = Describe("E2E TEST:Active", func() {

View File

@ -21,10 +21,10 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
"github.com/ossf/scorecard/clients/githubrepo" "github.com/ossf/scorecard/v2/clients/githubrepo"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
// TODO: use dedicated repo that don't change. // TODO: use dedicated repo that don't change.

View File

@ -21,10 +21,10 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
"github.com/ossf/scorecard/clients/githubrepo" "github.com/ossf/scorecard/v2/clients/githubrepo"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
// TODO: use dedicated repo that don't change. // TODO: use dedicated repo that don't change.

View File

@ -20,10 +20,10 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
sce "github.com/ossf/scorecard/errors" sce "github.com/ossf/scorecard/v2/errors"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
var _ = Describe("E2E TEST:Branch Protection", func() { var _ = Describe("E2E TEST:Branch Protection", func() {

View File

@ -20,9 +20,9 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
var _ = Describe("E2E TEST:CITests", func() { var _ = Describe("E2E TEST:CITests", func() {

View File

@ -20,9 +20,9 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
var _ = Describe("E2E TEST:CIIBestPractices", func() { var _ = Describe("E2E TEST:CIIBestPractices", func() {

View File

@ -21,10 +21,10 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
"github.com/ossf/scorecard/clients/githubrepo" "github.com/ossf/scorecard/v2/clients/githubrepo"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
// TODO: use dedicated repo that don't change. // TODO: use dedicated repo that don't change.

View File

@ -21,9 +21,9 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
var _ = Describe("E2E TEST:Contributors", func() { var _ = Describe("E2E TEST:Contributors", func() {

View File

@ -26,7 +26,7 @@ import (
"github.com/shurcooL/githubv4" "github.com/shurcooL/githubv4"
"go.uber.org/zap" "go.uber.org/zap"
"github.com/ossf/scorecard/roundtripper" "github.com/ossf/scorecard/v2/roundtripper"
) )
var ( var (

View File

@ -20,10 +20,10 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
"github.com/ossf/scorecard/clients/githubrepo" "github.com/ossf/scorecard/v2/clients/githubrepo"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
// TODO: use dedicated repo that don't change. // TODO: use dedicated repo that don't change.

View File

@ -20,9 +20,9 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
var _ = Describe("E2E TEST:Fuzzing", func() { var _ = Describe("E2E TEST:Fuzzing", func() {

View File

@ -20,9 +20,9 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
var _ = Describe("E2E TEST:Packaging", func() { var _ = Describe("E2E TEST:Packaging", func() {

View File

@ -20,9 +20,9 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
var _ = Describe("E2E TEST:PullRequests", func() { var _ = Describe("E2E TEST:PullRequests", func() {

View File

@ -20,9 +20,9 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
var _ = Describe("E2E TEST:SAST", func() { var _ = Describe("E2E TEST:SAST", func() {

View File

@ -20,10 +20,10 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
"github.com/ossf/scorecard/clients/githubrepo" "github.com/ossf/scorecard/v2/clients/githubrepo"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
var _ = Describe("E2E TEST:SecurityPolicy", func() { var _ = Describe("E2E TEST:SecurityPolicy", func() {

View File

@ -20,9 +20,9 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
var _ = Describe("E2E TEST:Signedreleases", func() { var _ = Describe("E2E TEST:Signedreleases", func() {

View File

@ -20,9 +20,9 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
var _ = Describe("E2E TEST:Signedtags", func() { var _ = Describe("E2E TEST:Signedtags", func() {

View File

@ -21,9 +21,9 @@ import (
. "github.com/onsi/ginkgo" . "github.com/onsi/ginkgo"
. "github.com/onsi/gomega" . "github.com/onsi/gomega"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/checks" "github.com/ossf/scorecard/v2/checks"
scut "github.com/ossf/scorecard/utests" scut "github.com/ossf/scorecard/v2/utests"
) )
var _ = Describe("E2E TEST:Vulnerabilities", func() { var _ = Describe("E2E TEST:Vulnerabilities", func() {

View File

@ -1,7 +1,7 @@
# How to handle errors # How to handle errors
```golang ```golang
import sce "github.com/ossf/scorecard/errors" import sce "github.com/ossf/scorecard/v2/errors"
// Public errors are defined in errors/public.go and are exposed to callers. // Public errors are defined in errors/public.go and are exposed to callers.
// Internal errors are defined in checks/errors.go. Their names start with errInternalXXX // Internal errors are defined in checks/errors.go. Their names start with errInternalXXX
@ -25,4 +25,4 @@ err := dependency.apiCall()
if err != nil { if err != nil {
return sce.Create(sce.ErrScorecardInternal, fmt.Sprintf("dependency.apiCall: %v", err)) return sce.Create(sce.ErrScorecardInternal, fmt.Sprintf("dependency.apiCall: %v", err))
} }
``` ```

6
go.mod
View File

@ -1,4 +1,4 @@
module github.com/ossf/scorecard module github.com/ossf/scorecard/v2
go 1.16 go 1.16
@ -13,7 +13,6 @@ require (
github.com/google/go-cmp v0.5.6 github.com/google/go-cmp v0.5.6
github.com/google/go-github/v32 v32.1.0 github.com/google/go-github/v32 v32.1.0
github.com/google/go-github/v33 v33.0.0 github.com/google/go-github/v33 v33.0.0
github.com/google/go-querystring v1.1.0 // indirect
github.com/h2non/filetype v1.1.1 github.com/h2non/filetype v1.1.1
github.com/jszwec/csvutil v1.5.0 github.com/jszwec/csvutil v1.5.0
github.com/moby/buildkit v0.8.3 github.com/moby/buildkit v0.8.3
@ -26,11 +25,8 @@ require (
github.com/shurcooL/graphql v0.0.0-20200928012149-18c5c3165e3a // indirect github.com/shurcooL/graphql v0.0.0-20200928012149-18c5c3165e3a // indirect
github.com/spf13/cobra v1.2.1 github.com/spf13/cobra v1.2.1
go.opencensus.io v0.23.0 go.opencensus.io v0.23.0
go.uber.org/multierr v1.7.0 // indirect
go.uber.org/zap v1.18.1 go.uber.org/zap v1.18.1
gocloud.dev v0.23.0 gocloud.dev v0.23.0
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a // indirect
golang.org/x/net v0.0.0-20210510120150-4163338589ed // indirect
golang.org/x/tools v0.1.5 golang.org/x/tools v0.1.5
google.golang.org/genproto v0.0.0-20210707164411-8c882eb9abba google.golang.org/genproto v0.0.0-20210707164411-8c882eb9abba
google.golang.org/protobuf v1.27.1 google.golang.org/protobuf v1.27.1

12
go.sum
View File

@ -643,9 +643,8 @@ github.com/google/go-github/v32 v32.1.0 h1:GWkQOdXqviCPx7Q7Fj+KyPoGm4SwHRh8rheoP
github.com/google/go-github/v32 v32.1.0/go.mod h1:rIEpZD9CTDQwDK9GDrtMTycQNA4JU3qBsCizh3q2WCI= github.com/google/go-github/v32 v32.1.0/go.mod h1:rIEpZD9CTDQwDK9GDrtMTycQNA4JU3qBsCizh3q2WCI=
github.com/google/go-github/v33 v33.0.0 h1:qAf9yP0qc54ufQxzwv+u9H0tiVOnPJxo0lI/JXqw3ZM= github.com/google/go-github/v33 v33.0.0 h1:qAf9yP0qc54ufQxzwv+u9H0tiVOnPJxo0lI/JXqw3ZM=
github.com/google/go-github/v33 v33.0.0/go.mod h1:GMdDnVZY/2TsWgp/lkYnpSAh6TrzhANBBwm6k6TTEXg= github.com/google/go-github/v33 v33.0.0/go.mod h1:GMdDnVZY/2TsWgp/lkYnpSAh6TrzhANBBwm6k6TTEXg=
github.com/google/go-querystring v1.0.0 h1:Xkwi/a1rcvNg1PPYe5vI8GbeBY/jrVuDX5ASuANWTrk=
github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck= github.com/google/go-querystring v1.0.0/go.mod h1:odCYkC5MyYFN7vkCjXpyrEuKhc/BUO6wN/zVPAxq5ck=
github.com/google/go-querystring v1.1.0 h1:AnCroh3fv4ZBgVIf1Iwtovgjaw/GiKJo8M8yD/fhyJ8=
github.com/google/go-querystring v1.1.0/go.mod h1:Kcdr2DB4koayq7X8pmAG4sNG59So17icRSOU623lUBU=
github.com/google/go-replayers/grpcreplay v0.1.0/go.mod h1:8Ig2Idjpr6gifRd6pNVggX6TC1Zw6Jx74AKp7QNH2QE= github.com/google/go-replayers/grpcreplay v0.1.0/go.mod h1:8Ig2Idjpr6gifRd6pNVggX6TC1Zw6Jx74AKp7QNH2QE=
github.com/google/go-replayers/grpcreplay v1.0.0 h1:B5kVOzJ1hBgnevTgIWhSTatQ3608yu/2NnU0Ta1d0kY= github.com/google/go-replayers/grpcreplay v1.0.0 h1:B5kVOzJ1hBgnevTgIWhSTatQ3608yu/2NnU0Ta1d0kY=
github.com/google/go-replayers/grpcreplay v1.0.0/go.mod h1:8Ig2Idjpr6gifRd6pNVggX6TC1Zw6Jx74AKp7QNH2QE= github.com/google/go-replayers/grpcreplay v1.0.0/go.mod h1:8Ig2Idjpr6gifRd6pNVggX6TC1Zw6Jx74AKp7QNH2QE=
@ -1407,9 +1406,8 @@ go.uber.org/multierr v1.1.0/go.mod h1:wR5kodmAFQ0UK8QlbwjlSNy0Z68gJhDJUG5sjR94q/
go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.3.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4=
go.uber.org/multierr v1.4.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4= go.uber.org/multierr v1.4.0/go.mod h1:VgVr7evmIr6uPjLBxg28wmKNXyqE9akIJ5XnfpiKl+4=
go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU= go.uber.org/multierr v1.5.0/go.mod h1:FeouvMocqHpRaaGuG9EjoKcStLC43Zu/fmqdUMPcKYU=
go.uber.org/multierr v1.6.0 h1:y6IPFStTAIT5Ytl7/XYmHvzXQ7S3g/IeZW9hyZ5thw4=
go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU= go.uber.org/multierr v1.6.0/go.mod h1:cdWPpRnG4AhwMwsgIHip0KRBQjJy5kYEpYjJxpXp9iU=
go.uber.org/multierr v1.7.0 h1:zaiO/rmgFjbmCXdSYJWQcdvOCsthmdaHfr3Gm2Kx4Ec=
go.uber.org/multierr v1.7.0/go.mod h1:7EAYxJLBy9rStEaz58O2t4Uvip6FSURkq8/ppBp95ak=
go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA= go.uber.org/tools v0.0.0-20190618225709-2cfd321de3ee/go.mod h1:vJERXedbb3MVM5f9Ejo0C68/HhF8uaILCdgjnY+goOA=
go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q= go.uber.org/zap v1.10.0/go.mod h1:vwi/ZaCAaUcBkycHslxD9B2zi4UTXhF60s6SWpuDF0Q=
go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM= go.uber.org/zap v1.13.0/go.mod h1:zwrFLgMcdUuIBviXEYEH1YKNaOBnKXsx2IPda5bBwHM=
@ -1448,9 +1446,8 @@ golang.org/x/crypto v0.0.0-20201117144127-c1f2f97bffc9/go.mod h1:jdWPYTVW3xRLrWP
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I= golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad/go.mod h1:jdWPYTVW3xRLrWPugEBEK3UY2ZEsg3UU495nc5E+M+I=
golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210322153248-0c34fe9e7dc2/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4= golang.org/x/crypto v0.0.0-20210421170649-83a5a9bb288b/go.mod h1:T9bdIzuCu7OtxOm1hfPfRQxPLYneinmdGuTeoZ9dtd4=
golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf h1:B2n+Zi5QeYRDAEodEu72OS36gmTWjgpXr2+cWcBW90o=
golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8= golang.org/x/crypto v0.0.0-20210506145944-38f3c27a63bf/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a h1:kr2P4QFmQr29mSLA43kwrOcgcReGTfbE9N577tCTuBc=
golang.org/x/crypto v0.0.0-20210513164829-c07d793c2f9a/go.mod h1:P+XmwS30IXTQdn5tA2iutPOUgjI07+tq3H3K9MVA1s8=
golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190121172915-509febef88a4/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190125153040-c74c464bbbf2/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA= golang.org/x/exp v0.0.0-20190306152737-a1d7652674e8/go.mod h1:CJ0aWSM057203Lf6IL+f9T1iT9GByDxfZKAQTCR3kQA=
@ -1556,9 +1553,8 @@ golang.org/x/net v0.0.0-20210405180319-a5a99cb37ef4/go.mod h1:p54w0d4576C0XHj96b
golang.org/x/net v0.0.0-20210420210106-798c2154c571/go.mod h1:72T/g9IO56b78aLF+1Kcs5dz7/ng1VjMUvfKvpfy+jM= golang.org/x/net v0.0.0-20210420210106-798c2154c571/go.mod h1:72T/g9IO56b78aLF+1Kcs5dz7/ng1VjMUvfKvpfy+jM=
golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk= golang.org/x/net v0.0.0-20210428140749-89ef3d95e781/go.mod h1:OJAsFXCWl8Ukc7SiCT/9KSuxbyM7479/AVlXFRxuMCk=
golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210503060351-7fd8e65b6420/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20210505214959-0714010a04ed h1:V9kAVxLvz1lkufatrpHuUVyJ/5tR3Ms7rk951P4mI98=
golang.org/x/net v0.0.0-20210505214959-0714010a04ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y= golang.org/x/net v0.0.0-20210505214959-0714010a04ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/net v0.0.0-20210510120150-4163338589ed h1:p9UgmWI9wKpfYmgaV/IZKGdXc5qEK45tDwwwDyjS26I=
golang.org/x/net v0.0.0-20210510120150-4163338589ed/go.mod h1:9nx3DQGgdP8bBQD5qxJ1jj9UTztislL4KSBs9R2vV5Y=
golang.org/x/oauth2 v0.0.0-20180724155351-3d292e4d0cdc/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20180724155351-3d292e4d0cdc/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20180821212333-d2e6202438be/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=
golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U= golang.org/x/oauth2 v0.0.0-20181017192945-9dcd33a902f4/go.mod h1:N/0e6XlmueqKjAGxoOufVs8QHGRruUQn6yWY3a++T0U=

View File

@ -14,7 +14,7 @@
package main package main
import "github.com/ossf/scorecard/cmd" import "github.com/ossf/scorecard/v2/cmd"
func main() { func main() {
cmd.Execute() cmd.Execute()

View File

@ -26,10 +26,10 @@ import (
opencensusstats "go.opencensus.io/stats" opencensusstats "go.opencensus.io/stats"
"go.opencensus.io/tag" "go.opencensus.io/tag"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
"github.com/ossf/scorecard/clients" "github.com/ossf/scorecard/v2/clients"
"github.com/ossf/scorecard/repos" "github.com/ossf/scorecard/v2/repos"
"github.com/ossf/scorecard/stats" "github.com/ossf/scorecard/v2/stats"
) )
func logStats(ctx context.Context, startTime time.Time) { func logStats(ctx context.Context, startTime time.Time) {

View File

@ -27,7 +27,7 @@ import (
"github.com/olekukonko/tablewriter" "github.com/olekukonko/tablewriter"
"go.uber.org/zap/zapcore" "go.uber.org/zap/zapcore"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
) )
type ScorecardResult struct { type ScorecardResult struct {

View File

@ -23,7 +23,7 @@ import (
opencensusstats "go.opencensus.io/stats" opencensusstats "go.opencensus.io/stats"
"go.opencensus.io/tag" "go.opencensus.io/tag"
"github.com/ossf/scorecard/stats" "github.com/ossf/scorecard/v2/stats"
) )
func MakeCensusTransport(innerTransport http.RoundTripper) http.RoundTripper { func MakeCensusTransport(innerTransport http.RoundTripper) http.RoundTripper {

View File

@ -25,7 +25,7 @@ import (
"github.com/bradleyfalzon/ghinstallation" "github.com/bradleyfalzon/ghinstallation"
"go.uber.org/zap" "go.uber.org/zap"
"github.com/ossf/scorecard/clients/githubrepo" "github.com/ossf/scorecard/v2/clients/githubrepo"
) )
// GithubAuthTokens are for making requests to GiHub's API. // GithubAuthTokens are for making requests to GiHub's API.

View File

@ -19,7 +19,7 @@ import (
"fmt" "fmt"
"testing" "testing"
"github.com/ossf/scorecard/checker" "github.com/ossf/scorecard/v2/checker"
) )
func validateDetailTypes(messages []checker.CheckDetail, nw, ni, nd int) bool { func validateDetailTypes(messages []checker.CheckDetail, nw, ni, nd int) bool {