mirror of
https://github.com/ossf/scorecard.git
synced 2024-09-11 08:55:27 +03:00
✨ Migrate to v4
This commit is contained in:
parent
61a0124407
commit
f2c57d2590
@ -152,4 +152,4 @@ linters-settings:
|
|||||||
- unnecessaryBlock
|
- unnecessaryBlock
|
||||||
wrapcheck:
|
wrapcheck:
|
||||||
ignorePackageGlobs:
|
ignorePackageGlobs:
|
||||||
- github.com/ossf/scorecard/v3/checks/fileparser
|
- github.com/ossf/scorecard/v4/checks/fileparser
|
||||||
|
16
Makefile
16
Makefile
@ -98,7 +98,7 @@ build-cron: build-controller build-worker build-cii-worker \
|
|||||||
build-shuffler build-bq-transfer build-github-server \
|
build-shuffler build-bq-transfer build-github-server \
|
||||||
build-webhook build-add-script build-validate-script build-update-script
|
build-webhook build-add-script build-validate-script build-update-script
|
||||||
|
|
||||||
build-targets = generate-mocks generate-docs build-proto build-scorecard build-releaser build-cron ko-build-everything dockerbuild
|
build-targets = generate-mocks generate-docs build-proto build-scorecard build-cron ko-build-everything dockerbuild
|
||||||
.PHONY: build $(build-targets)
|
.PHONY: build $(build-targets)
|
||||||
build: ## Build all binaries and images in the repo.
|
build: ## Build all binaries and images in the repo.
|
||||||
build: $(build-targets)
|
build: $(build-targets)
|
||||||
@ -202,43 +202,43 @@ scorecard-ko:
|
|||||||
ko publish -B \
|
ko publish -B \
|
||||||
--push=false \
|
--push=false \
|
||||||
--platform=$(PLATFORM)\
|
--platform=$(PLATFORM)\
|
||||||
--tags latest,$(GIT_VERSION),$(GIT_HASH) github.com/ossf/scorecard/v3
|
--tags latest,$(GIT_VERSION),$(GIT_HASH) github.com/ossf/scorecard/v4
|
||||||
cron-controller-ko:
|
cron-controller-ko:
|
||||||
KO_DATA_DATE_EPOCH=$(SOURCE_DATE_EPOCH) KO_DOCKER_REPO=${KO_PREFIX}/$(IMAGE_NAME)-batch-controller LDFLAGS="$(LDFLAGS)" \
|
KO_DATA_DATE_EPOCH=$(SOURCE_DATE_EPOCH) KO_DOCKER_REPO=${KO_PREFIX}/$(IMAGE_NAME)-batch-controller LDFLAGS="$(LDFLAGS)" \
|
||||||
ko publish -B \
|
ko publish -B \
|
||||||
--push=false \
|
--push=false \
|
||||||
--platform=$(PLATFORM)\
|
--platform=$(PLATFORM)\
|
||||||
--tags latest,$(GIT_VERSION),$(GIT_HASH) github.com/ossf/scorecard/v3/cron/controller
|
--tags latest,$(GIT_VERSION),$(GIT_HASH) github.com/ossf/scorecard/v4/cron/controller
|
||||||
cron-worker-ko:
|
cron-worker-ko:
|
||||||
KO_DATA_DATE_EPOCH=$(SOURCE_DATE_EPOCH) KO_DOCKER_REPO=${KO_PREFIX}/$(IMAGE_NAME)-batch-worker LDFLAGS="$(LDFLAGS)" \
|
KO_DATA_DATE_EPOCH=$(SOURCE_DATE_EPOCH) KO_DOCKER_REPO=${KO_PREFIX}/$(IMAGE_NAME)-batch-worker LDFLAGS="$(LDFLAGS)" \
|
||||||
ko publish -B \
|
ko publish -B \
|
||||||
--push=false \
|
--push=false \
|
||||||
--platform=$(PLATFORM)\
|
--platform=$(PLATFORM)\
|
||||||
--tags latest,$(GIT_VERSION),$(GIT_HASH) github.com/ossf/scorecard/v3/cron/worker
|
--tags latest,$(GIT_VERSION),$(GIT_HASH) github.com/ossf/scorecard/v4/cron/worker
|
||||||
cron-cii-worker-ko:
|
cron-cii-worker-ko:
|
||||||
KO_DATA_DATE_EPOCH=$(SOURCE_DATE_EPOCH) KO_DOCKER_REPO=${KO_PREFIX}/$(IMAGE_NAME)-cii-worker LDFLAGS="$(LDFLAGS)" \
|
KO_DATA_DATE_EPOCH=$(SOURCE_DATE_EPOCH) KO_DOCKER_REPO=${KO_PREFIX}/$(IMAGE_NAME)-cii-worker LDFLAGS="$(LDFLAGS)" \
|
||||||
ko publish -B \
|
ko publish -B \
|
||||||
--push=false \
|
--push=false \
|
||||||
--platform=$(PLATFORM)\
|
--platform=$(PLATFORM)\
|
||||||
--tags latest,$(GIT_VERSION),$(GIT_HASH) github.com/ossf/scorecard/v3/cron/cii
|
--tags latest,$(GIT_VERSION),$(GIT_HASH) github.com/ossf/scorecard/v4/cron/cii
|
||||||
cron-bq-transfer-ko:
|
cron-bq-transfer-ko:
|
||||||
KO_DATA_DATE_EPOCH=$(SOURCE_DATE_EPOCH) KO_DOCKER_REPO=${KO_PREFIX}/$(IMAGE_NAME)-bq-transfer LDFLAGS="$(LDFLAGS)" \
|
KO_DATA_DATE_EPOCH=$(SOURCE_DATE_EPOCH) KO_DOCKER_REPO=${KO_PREFIX}/$(IMAGE_NAME)-bq-transfer LDFLAGS="$(LDFLAGS)" \
|
||||||
ko publish -B \
|
ko publish -B \
|
||||||
--push=false \
|
--push=false \
|
||||||
--platform=$(PLATFORM)\
|
--platform=$(PLATFORM)\
|
||||||
--tags latest,$(GIT_VERSION),$(GIT_HASH) github.com/ossf/scorecard/v3/cron/bq
|
--tags latest,$(GIT_VERSION),$(GIT_HASH) github.com/ossf/scorecard/v4/cron/bq
|
||||||
cron-webhook-ko:
|
cron-webhook-ko:
|
||||||
KO_DATA_DATE_EPOCH=$(SOURCE_DATE_EPOCH) KO_DOCKER_REPO=${KO_PREFIX}/$(IMAGE_NAME)-cron-webhook LDFLAGS="$(LDFLAGS)" \
|
KO_DATA_DATE_EPOCH=$(SOURCE_DATE_EPOCH) KO_DOCKER_REPO=${KO_PREFIX}/$(IMAGE_NAME)-cron-webhook LDFLAGS="$(LDFLAGS)" \
|
||||||
ko publish -B \
|
ko publish -B \
|
||||||
--push=false \
|
--push=false \
|
||||||
--platform=$(PLATFORM)\
|
--platform=$(PLATFORM)\
|
||||||
--tags latest,$(GIT_VERSION),$(GIT_HASH) github.com/ossf/scorecard/v3/cron/webhook
|
--tags latest,$(GIT_VERSION),$(GIT_HASH) github.com/ossf/scorecard/v4/cron/webhook
|
||||||
cron-github-server-ko:
|
cron-github-server-ko:
|
||||||
KO_DATA_DATE_EPOCH=$(SOURCE_DATE_EPOCH) KO_DOCKER_REPO=${KO_PREFIX}/$(IMAGE_NAME)-github-server LDFLAGS="$(LDFLAGS)" \
|
KO_DATA_DATE_EPOCH=$(SOURCE_DATE_EPOCH) KO_DOCKER_REPO=${KO_PREFIX}/$(IMAGE_NAME)-github-server LDFLAGS="$(LDFLAGS)" \
|
||||||
ko publish -B \
|
ko publish -B \
|
||||||
--push=false \
|
--push=false \
|
||||||
--platform=$(PLATFORM)\
|
--platform=$(PLATFORM)\
|
||||||
--tags latest,$(GIT_VERSION),$(GIT_HASH) github.com/ossf/scorecard/v3/clients/githubrepo/roundtripper/tokens/server
|
--tags latest,$(GIT_VERSION),$(GIT_HASH) github.com/ossf/scorecard/v4/clients/githubrepo/roundtripper/tokens/server
|
||||||
|
|
||||||
docker-targets = scorecard-docker cron-controller-docker cron-worker-docker cron-cii-worker-docker cron-bq-transfer-docker cron-webhook-docker cron-github-server-docker
|
docker-targets = scorecard-docker cron-controller-docker cron-worker-docker cron-cii-worker-docker cron-bq-transfer-docker cron-webhook-docker cron-github-server-docker
|
||||||
.PHONY: dockerbuild $(docker-targets)
|
.PHONY: dockerbuild $(docker-targets)
|
||||||
|
@ -17,7 +17,7 @@ package checker
|
|||||||
import (
|
import (
|
||||||
"context"
|
"context"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CheckRequest struct encapsulates all data to be passed into a CheckFn.
|
// CheckRequest struct encapsulates all data to be passed into a CheckFn.
|
||||||
|
@ -23,8 +23,8 @@ import (
|
|||||||
opencensusstats "go.opencensus.io/stats"
|
opencensusstats "go.opencensus.io/stats"
|
||||||
"go.opencensus.io/tag"
|
"go.opencensus.io/tag"
|
||||||
|
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
"github.com/ossf/scorecard/v3/stats"
|
"github.com/ossf/scorecard/v4/stats"
|
||||||
)
|
)
|
||||||
|
|
||||||
const checkRetries = 3
|
const checkRetries = 3
|
||||||
|
@ -15,7 +15,7 @@
|
|||||||
// Package checks defines all Scorecard checks.
|
// Package checks defines all Scorecard checks.
|
||||||
package checks
|
package checks
|
||||||
|
|
||||||
import "github.com/ossf/scorecard/v3/checker"
|
import "github.com/ossf/scorecard/v4/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{}
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
package checks
|
package checks
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/checks/evaluation"
|
"github.com/ossf/scorecard/v4/checks/evaluation"
|
||||||
"github.com/ossf/scorecard/v3/checks/raw"
|
"github.com/ossf/scorecard/v4/checks/raw"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CheckBinaryArtifacts is the exported name for Binary-Artifacts check.
|
// CheckBinaryArtifacts is the exported name for Binary-Artifacts check.
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
package checks
|
package checks
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/checks/evaluation"
|
"github.com/ossf/scorecard/v4/checks/evaluation"
|
||||||
"github.com/ossf/scorecard/v3/checks/raw"
|
"github.com/ossf/scorecard/v4/checks/raw"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -19,11 +19,11 @@ import (
|
|||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
mockrepo "github.com/ossf/scorecard/v3/clients/mockclients"
|
mockrepo "github.com/ossf/scorecard/v4/clients/mockclients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
scut "github.com/ossf/scorecard/v3/utests"
|
scut "github.com/ossf/scorecard/v4/utests"
|
||||||
)
|
)
|
||||||
|
|
||||||
func getBranchName(branch *clients.BranchRef) string {
|
func getBranchName(branch *clients.BranchRef) string {
|
||||||
|
@ -18,9 +18,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -20,10 +20,10 @@ import (
|
|||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
mockrepo "github.com/ossf/scorecard/v3/clients/mockclients"
|
mockrepo "github.com/ossf/scorecard/v4/clients/mockclients"
|
||||||
scut "github.com/ossf/scorecard/v3/utests"
|
scut "github.com/ossf/scorecard/v4/utests"
|
||||||
)
|
)
|
||||||
|
|
||||||
func Test_isTest(t *testing.T) {
|
func Test_isTest(t *testing.T) {
|
||||||
|
@ -17,9 +17,9 @@ package checks
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -21,11 +21,11 @@ import (
|
|||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
mockrepo "github.com/ossf/scorecard/v3/clients/mockclients"
|
mockrepo "github.com/ossf/scorecard/v4/clients/mockclients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
scut "github.com/ossf/scorecard/v3/utests"
|
scut "github.com/ossf/scorecard/v4/utests"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errTest = errors.New("test error")
|
var errTest = errors.New("test error")
|
||||||
|
@ -18,8 +18,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CheckCodeReview is the registered name for DoesCodeReview.
|
// CheckCodeReview is the registered name for DoesCodeReview.
|
||||||
|
@ -18,8 +18,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -20,10 +20,10 @@ import (
|
|||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
mockrepo "github.com/ossf/scorecard/v3/clients/mockclients"
|
mockrepo "github.com/ossf/scorecard/v4/clients/mockclients"
|
||||||
scut "github.com/ossf/scorecard/v3/utests"
|
scut "github.com/ossf/scorecard/v4/utests"
|
||||||
)
|
)
|
||||||
|
|
||||||
// TestContributors tests the contributors check.
|
// TestContributors tests the contributors check.
|
||||||
|
@ -21,9 +21,9 @@ import (
|
|||||||
|
|
||||||
"github.com/rhysd/actionlint"
|
"github.com/rhysd/actionlint"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/checks/fileparser"
|
"github.com/ossf/scorecard/v4/checks/fileparser"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CheckDangerousWorkflow is the exported name for Dangerous-Workflow check.
|
// CheckDangerousWorkflow is the exported name for Dangerous-Workflow check.
|
||||||
|
@ -19,8 +19,8 @@ import (
|
|||||||
"io/ioutil"
|
"io/ioutil"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
scut "github.com/ossf/scorecard/v3/utests"
|
scut "github.com/ossf/scorecard/v4/utests"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGithubDangerousWorkflow(t *testing.T) {
|
func TestGithubDangerousWorkflow(t *testing.T) {
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
package checks
|
package checks
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/checks/evaluation"
|
"github.com/ossf/scorecard/v4/checks/evaluation"
|
||||||
"github.com/ossf/scorecard/v3/checks/raw"
|
"github.com/ossf/scorecard/v4/checks/raw"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CheckDependencyUpdateTool is the exported name for Automatic-Depdendency-Update.
|
// CheckDependencyUpdateTool is the exported name for Automatic-Depdendency-Update.
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
package evaluation
|
package evaluation
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// BinaryArtifacts applies the score policy for the Binary-Artifacts check.
|
// BinaryArtifacts applies the score policy for the Binary-Artifacts check.
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
package evaluation
|
package evaluation
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -17,8 +17,8 @@ package evaluation
|
|||||||
import (
|
import (
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
scut "github.com/ossf/scorecard/v3/utests"
|
scut "github.com/ossf/scorecard/v4/utests"
|
||||||
)
|
)
|
||||||
|
|
||||||
func testScore(branch *checker.BranchProtectionData, dl checker.DetailLogger) (int, error) {
|
func testScore(branch *checker.BranchProtectionData, dl checker.DetailLogger) (int, error) {
|
||||||
|
@ -17,8 +17,8 @@ package evaluation
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DependencyUpdateTool applies the score policy for the Dependency-Update-Tool check.
|
// DependencyUpdateTool applies the score policy for the Dependency-Update-Tool check.
|
||||||
|
@ -15,8 +15,8 @@
|
|||||||
package evaluation
|
package evaluation
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SecurityPolicy applies the score policy for the Security-Policy check.
|
// SecurityPolicy applies the score policy for the Security-Policy check.
|
||||||
|
@ -22,8 +22,8 @@ import (
|
|||||||
|
|
||||||
"github.com/rhysd/actionlint"
|
"github.com/rhysd/actionlint"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -20,9 +20,9 @@ import (
|
|||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// isMatchingPath uses 'pattern' to shell-match the 'path' and its filename
|
// isMatchingPath uses 'pattern' to shell-match the 'path' and its filename
|
||||||
|
@ -17,10 +17,10 @@ package checks
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/checks/fileparser"
|
"github.com/ossf/scorecard/v4/checks/fileparser"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CheckFuzzing is the registered name for Fuzzing.
|
// CheckFuzzing is the registered name for Fuzzing.
|
||||||
|
@ -18,8 +18,8 @@ import (
|
|||||||
"regexp"
|
"regexp"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/checks/fileparser"
|
"github.com/ossf/scorecard/v4/checks/fileparser"
|
||||||
)
|
)
|
||||||
|
|
||||||
type check func(str string, extCheck []string) bool
|
type check func(str string, extCheck []string) bool
|
||||||
|
@ -22,10 +22,10 @@ import (
|
|||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
"go.uber.org/zap/zapcore"
|
"go.uber.org/zap/zapcore"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/clients/githubrepo"
|
"github.com/ossf/scorecard/v4/clients/githubrepo"
|
||||||
"github.com/ossf/scorecard/v3/clients/localdir"
|
"github.com/ossf/scorecard/v4/clients/localdir"
|
||||||
scut "github.com/ossf/scorecard/v3/utests"
|
scut "github.com/ossf/scorecard/v4/utests"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestLicenseFileCheck(t *testing.T) {
|
func TestLicenseFileCheck(t *testing.T) {
|
||||||
|
@ -18,8 +18,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -21,10 +21,10 @@ import (
|
|||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
mockrepo "github.com/ossf/scorecard/v3/clients/mockclients"
|
mockrepo "github.com/ossf/scorecard/v4/clients/mockclients"
|
||||||
scut "github.com/ossf/scorecard/v3/utests"
|
scut "github.com/ossf/scorecard/v4/utests"
|
||||||
)
|
)
|
||||||
|
|
||||||
// nolint: gocognit
|
// nolint: gocognit
|
||||||
|
@ -21,9 +21,9 @@ import (
|
|||||||
|
|
||||||
"github.com/rhysd/actionlint"
|
"github.com/rhysd/actionlint"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/checks/fileparser"
|
"github.com/ossf/scorecard/v4/checks/fileparser"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CheckPackaging is the registered name for Packaging.
|
// CheckPackaging is the registered name for Packaging.
|
||||||
|
@ -21,7 +21,7 @@ import (
|
|||||||
|
|
||||||
"github.com/rhysd/actionlint"
|
"github.com/rhysd/actionlint"
|
||||||
|
|
||||||
scut "github.com/ossf/scorecard/v3/utests"
|
scut "github.com/ossf/scorecard/v4/utests"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestIsPackagingWorkflow(t *testing.T) {
|
func TestIsPackagingWorkflow(t *testing.T) {
|
||||||
|
@ -20,9 +20,9 @@ import (
|
|||||||
|
|
||||||
"github.com/rhysd/actionlint"
|
"github.com/rhysd/actionlint"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/checks/fileparser"
|
"github.com/ossf/scorecard/v4/checks/fileparser"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CheckTokenPermissions is the exported name for Token-Permissions check.
|
// CheckTokenPermissions is the exported name for Token-Permissions check.
|
||||||
|
@ -19,8 +19,8 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
scut "github.com/ossf/scorecard/v3/utests"
|
scut "github.com/ossf/scorecard/v4/utests"
|
||||||
)
|
)
|
||||||
|
|
||||||
type file struct {
|
type file struct {
|
||||||
|
@ -22,9 +22,9 @@ import (
|
|||||||
"github.com/moby/buildkit/frontend/dockerfile/parser"
|
"github.com/moby/buildkit/frontend/dockerfile/parser"
|
||||||
"github.com/rhysd/actionlint"
|
"github.com/rhysd/actionlint"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/checks/fileparser"
|
"github.com/ossf/scorecard/v4/checks/fileparser"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CheckPinnedDependencies is the registered name for FrozenDeps.
|
// CheckPinnedDependencies is the registered name for FrozenDeps.
|
||||||
|
@ -20,8 +20,8 @@ import (
|
|||||||
"strings"
|
"strings"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
scut "github.com/ossf/scorecard/v3/utests"
|
scut "github.com/ossf/scorecard/v4/utests"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestGithubWorkflowPinning(t *testing.T) {
|
func TestGithubWorkflowPinning(t *testing.T) {
|
||||||
|
@ -22,10 +22,10 @@ import (
|
|||||||
"github.com/h2non/filetype"
|
"github.com/h2non/filetype"
|
||||||
"github.com/h2non/filetype/types"
|
"github.com/h2non/filetype/types"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/checks/fileparser"
|
"github.com/ossf/scorecard/v4/checks/fileparser"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// BinaryArtifacts retrieves the raw data for the Binary-Artifacts check.
|
// BinaryArtifacts retrieves the raw data for the Binary-Artifacts check.
|
||||||
|
@ -19,9 +19,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"regexp"
|
"regexp"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
type branchMap map[string]*clients.BranchRef
|
type branchMap map[string]*clients.BranchRef
|
||||||
|
@ -18,9 +18,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/checks/fileparser"
|
"github.com/ossf/scorecard/v4/checks/fileparser"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
)
|
)
|
||||||
|
|
||||||
// DependencyUpdateTool is the exported name for Depdendency-Update-Tool.
|
// DependencyUpdateTool is the exported name for Depdendency-Update-Tool.
|
||||||
|
@ -21,10 +21,10 @@ import (
|
|||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/checks/fileparser"
|
"github.com/ossf/scorecard/v4/checks/fileparser"
|
||||||
"github.com/ossf/scorecard/v3/clients/githubrepo"
|
"github.com/ossf/scorecard/v4/clients/githubrepo"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// SecurityPolicy checks for presence of security policy.
|
// SecurityPolicy checks for presence of security policy.
|
||||||
|
@ -17,9 +17,9 @@ package checks
|
|||||||
import (
|
import (
|
||||||
"fmt"
|
"fmt"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CheckSAST is the registered name for SAST.
|
// CheckSAST is the registered name for SAST.
|
||||||
|
@ -15,10 +15,10 @@
|
|||||||
package checks
|
package checks
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/checks/evaluation"
|
"github.com/ossf/scorecard/v4/checks/evaluation"
|
||||||
"github.com/ossf/scorecard/v3/checks/raw"
|
"github.com/ossf/scorecard/v4/checks/raw"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// CheckSecurityPolicy is the registred name for SecurityPolicy.
|
// CheckSecurityPolicy is the registred name for SecurityPolicy.
|
||||||
|
@ -27,8 +27,8 @@ import (
|
|||||||
|
|
||||||
"mvdan.cc/sh/v3/syntax"
|
"mvdan.cc/sh/v3/syntax"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -18,7 +18,7 @@ import (
|
|||||||
"os"
|
"os"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
scut "github.com/ossf/scorecard/v3/utests"
|
scut "github.com/ossf/scorecard/v4/utests"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestIsSupportedShellScriptFile(t *testing.T) {
|
func TestIsSupportedShellScriptFile(t *testing.T) {
|
||||||
|
@ -18,8 +18,8 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -20,10 +20,10 @@ import (
|
|||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
mockrepo "github.com/ossf/scorecard/v3/clients/mockclients"
|
mockrepo "github.com/ossf/scorecard/v4/clients/mockclients"
|
||||||
scut "github.com/ossf/scorecard/v3/utests"
|
scut "github.com/ossf/scorecard/v4/utests"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestSignedRelease(t *testing.T) {
|
func TestSignedRelease(t *testing.T) {
|
||||||
|
@ -18,9 +18,9 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -20,9 +20,9 @@ import (
|
|||||||
|
|
||||||
"github.com/golang/mock/gomock"
|
"github.com/golang/mock/gomock"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
mockrepo "github.com/ossf/scorecard/v3/clients/mockclients"
|
mockrepo "github.com/ossf/scorecard/v4/clients/mockclients"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestVulnerabilities(t *testing.T) {
|
func TestVulnerabilities(t *testing.T) {
|
||||||
|
@ -22,8 +22,8 @@ import (
|
|||||||
"github.com/google/go-github/v38/github"
|
"github.com/google/go-github/v38/github"
|
||||||
"github.com/shurcooL/githubv4"
|
"github.com/shurcooL/githubv4"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -20,8 +20,8 @@ import (
|
|||||||
|
|
||||||
"github.com/google/go-github/v38/github"
|
"github.com/google/go-github/v38/github"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
type checkrunsHandler struct {
|
type checkrunsHandler struct {
|
||||||
|
@ -26,9 +26,9 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"go.uber.org/zap/zapcore"
|
"go.uber.org/zap/zapcore"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
"github.com/ossf/scorecard/v3/clients/githubrepo/roundtripper"
|
"github.com/ossf/scorecard/v4/clients/githubrepo/roundtripper"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errInputRepoType = errors.New("input repo should be of type repoURL")
|
var errInputRepoType = errors.New("input repo should be of type repoURL")
|
||||||
|
@ -21,7 +21,7 @@ import (
|
|||||||
|
|
||||||
"github.com/google/go-github/v38/github"
|
"github.com/google/go-github/v38/github"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
)
|
)
|
||||||
|
|
||||||
type contributorsHandler struct {
|
type contributorsHandler struct {
|
||||||
|
@ -22,8 +22,8 @@ import (
|
|||||||
|
|
||||||
"github.com/shurcooL/githubv4"
|
"github.com/shurcooL/githubv4"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -21,8 +21,8 @@ import (
|
|||||||
|
|
||||||
"github.com/google/go-github/v38/github"
|
"github.com/google/go-github/v38/github"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
type releasesHandler struct {
|
type releasesHandler struct {
|
||||||
|
@ -19,8 +19,8 @@ import (
|
|||||||
"net/url"
|
"net/url"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -22,8 +22,8 @@ import (
|
|||||||
opencensusstats "go.opencensus.io/stats"
|
opencensusstats "go.opencensus.io/stats"
|
||||||
"go.opencensus.io/tag"
|
"go.opencensus.io/tag"
|
||||||
|
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
"github.com/ossf/scorecard/v3/stats"
|
"github.com/ossf/scorecard/v4/stats"
|
||||||
)
|
)
|
||||||
|
|
||||||
const fromCacheHeader = "X-From-Cache"
|
const fromCacheHeader = "X-From-Cache"
|
||||||
|
@ -22,7 +22,7 @@ import (
|
|||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MakeRateLimitedTransport returns a RoundTripper which rate limits GitHub requests.
|
// MakeRateLimitedTransport returns a RoundTripper which rate limits GitHub requests.
|
||||||
|
@ -25,7 +25,7 @@ import (
|
|||||||
"github.com/bradleyfalzon/ghinstallation/v2"
|
"github.com/bradleyfalzon/ghinstallation/v2"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients/githubrepo/roundtripper/tokens"
|
"github.com/ossf/scorecard/v4/clients/githubrepo/roundtripper/tokens"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -20,7 +20,7 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"net/rpc"
|
"net/rpc"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients/githubrepo/roundtripper/tokens"
|
"github.com/ossf/scorecard/v4/clients/githubrepo/roundtripper/tokens"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -22,8 +22,8 @@ import (
|
|||||||
"go.opencensus.io/stats"
|
"go.opencensus.io/stats"
|
||||||
"go.opencensus.io/tag"
|
"go.opencensus.io/tag"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients/githubrepo/roundtripper/tokens"
|
"github.com/ossf/scorecard/v4/clients/githubrepo/roundtripper/tokens"
|
||||||
githubstats "github.com/ossf/scorecard/v3/clients/githubrepo/stats"
|
githubstats "github.com/ossf/scorecard/v4/clients/githubrepo/stats"
|
||||||
)
|
)
|
||||||
|
|
||||||
// makeGitHubTransport wraps input RoundTripper with GitHub authorization logic.
|
// makeGitHubTransport wraps input RoundTripper with GitHub authorization logic.
|
||||||
|
@ -22,7 +22,7 @@ import (
|
|||||||
|
|
||||||
"github.com/google/go-github/v38/github"
|
"github.com/google/go-github/v38/github"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errEmptyQuery = errors.New("search query is empty")
|
var errEmptyQuery = errors.New("search query is empty")
|
||||||
|
@ -18,7 +18,7 @@ import (
|
|||||||
"errors"
|
"errors"
|
||||||
"testing"
|
"testing"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestBuildQuery(t *testing.T) {
|
func TestBuildQuery(t *testing.T) {
|
||||||
|
@ -20,8 +20,8 @@ import (
|
|||||||
|
|
||||||
"github.com/google/go-github/v38/github"
|
"github.com/google/go-github/v38/github"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
type statusesHandler struct {
|
type statusesHandler struct {
|
||||||
|
@ -29,7 +29,7 @@ import (
|
|||||||
|
|
||||||
"github.com/google/go-github/v38/github"
|
"github.com/google/go-github/v38/github"
|
||||||
|
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -20,8 +20,8 @@ import (
|
|||||||
|
|
||||||
"github.com/google/go-github/v38/github"
|
"github.com/google/go-github/v38/github"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
type workflowsHandler struct {
|
type workflowsHandler struct {
|
||||||
|
@ -29,7 +29,7 @@ import (
|
|||||||
|
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
clients "github.com/ossf/scorecard/v3/clients"
|
clients "github.com/ossf/scorecard/v4/clients"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errInputRepoType = errors.New("input repo should be of type repoLocal")
|
var errInputRepoType = errors.New("input repo should be of type repoLocal")
|
||||||
|
@ -25,7 +25,7 @@ import (
|
|||||||
"github.com/google/go-cmp/cmp/cmpopts"
|
"github.com/google/go-cmp/cmp/cmpopts"
|
||||||
"go.uber.org/zap/zapcore"
|
"go.uber.org/zap/zapcore"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients/githubrepo"
|
"github.com/ossf/scorecard/v4/clients/githubrepo"
|
||||||
)
|
)
|
||||||
|
|
||||||
func TestClient_CreationAndCaching(t *testing.T) {
|
func TestClient_CreationAndCaching(t *testing.T) {
|
||||||
|
@ -23,7 +23,7 @@ import (
|
|||||||
"path"
|
"path"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
clients "github.com/ossf/scorecard/v3/clients"
|
clients "github.com/ossf/scorecard/v4/clients"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
|
|
||||||
gomock "github.com/golang/mock/gomock"
|
gomock "github.com/golang/mock/gomock"
|
||||||
clients "github.com/ossf/scorecard/v3/clients"
|
clients "github.com/ossf/scorecard/v4/clients"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MockCIIBestPracticesClient is a mock of CIIBestPracticesClient interface.
|
// MockCIIBestPracticesClient is a mock of CIIBestPracticesClient interface.
|
||||||
|
@ -23,7 +23,7 @@ import (
|
|||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
|
|
||||||
gomock "github.com/golang/mock/gomock"
|
gomock "github.com/golang/mock/gomock"
|
||||||
clients "github.com/ossf/scorecard/v3/clients"
|
clients "github.com/ossf/scorecard/v4/clients"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MockRepo is a mock of Repo interface.
|
// MockRepo is a mock of Repo interface.
|
||||||
|
@ -23,7 +23,7 @@ import (
|
|||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
|
|
||||||
gomock "github.com/golang/mock/gomock"
|
gomock "github.com/golang/mock/gomock"
|
||||||
clients "github.com/ossf/scorecard/v3/clients"
|
clients "github.com/ossf/scorecard/v4/clients"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MockRepoClient is a mock of RepoClient interface.
|
// MockRepoClient is a mock of RepoClient interface.
|
||||||
|
@ -24,7 +24,7 @@ import (
|
|||||||
reflect "reflect"
|
reflect "reflect"
|
||||||
|
|
||||||
gomock "github.com/golang/mock/gomock"
|
gomock "github.com/golang/mock/gomock"
|
||||||
clients "github.com/ossf/scorecard/v3/clients"
|
clients "github.com/ossf/scorecard/v4/clients"
|
||||||
)
|
)
|
||||||
|
|
||||||
// MockVulnerabilitiesClient is a mock of VulnerabilitiesClient interface.
|
// MockVulnerabilitiesClient is a mock of VulnerabilitiesClient interface.
|
||||||
|
@ -20,7 +20,7 @@ import (
|
|||||||
"encoding/json"
|
"encoding/json"
|
||||||
"net/http"
|
"net/http"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/errors"
|
"github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
const osvQueryEndpoint = "https://api.osv.dev/v1/query"
|
const osvQueryEndpoint = "https://api.osv.dev/v1/query"
|
||||||
|
18
cmd/root.go
18
cmd/root.go
@ -30,15 +30,15 @@ import (
|
|||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/checks"
|
"github.com/ossf/scorecard/v4/checks"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
"github.com/ossf/scorecard/v3/clients/githubrepo"
|
"github.com/ossf/scorecard/v4/clients/githubrepo"
|
||||||
"github.com/ossf/scorecard/v3/clients/localdir"
|
"github.com/ossf/scorecard/v4/clients/localdir"
|
||||||
docs "github.com/ossf/scorecard/v3/docs/checks"
|
docs "github.com/ossf/scorecard/v4/docs/checks"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
"github.com/ossf/scorecard/v3/pkg"
|
"github.com/ossf/scorecard/v4/pkg"
|
||||||
spol "github.com/ossf/scorecard/v3/policy"
|
spol "github.com/ossf/scorecard/v4/policy"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -24,10 +24,10 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checks"
|
"github.com/ossf/scorecard/v4/checks"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
"github.com/ossf/scorecard/v3/clients/githubrepo"
|
"github.com/ossf/scorecard/v4/clients/githubrepo"
|
||||||
"github.com/ossf/scorecard/v3/pkg"
|
"github.com/ossf/scorecard/v4/pkg"
|
||||||
)
|
)
|
||||||
|
|
||||||
//nolint:gochecknoinits
|
//nolint:gochecknoinits
|
||||||
|
@ -19,7 +19,7 @@ import (
|
|||||||
|
|
||||||
"github.com/spf13/cobra"
|
"github.com/spf13/cobra"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/pkg"
|
"github.com/ossf/scorecard/v4/pkg"
|
||||||
)
|
)
|
||||||
|
|
||||||
//nolint:gochecknoinits
|
//nolint:gochecknoinits
|
||||||
|
@ -27,8 +27,8 @@ import (
|
|||||||
|
|
||||||
"google.golang.org/protobuf/encoding/protojson"
|
"google.golang.org/protobuf/encoding/protojson"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/cron/config"
|
"github.com/ossf/scorecard/v4/cron/config"
|
||||||
"github.com/ossf/scorecard/v3/cron/data"
|
"github.com/ossf/scorecard/v4/cron/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
type shardSummary struct {
|
type shardSummary struct {
|
||||||
|
@ -23,9 +23,9 @@ import (
|
|||||||
"net/http"
|
"net/http"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
"github.com/ossf/scorecard/v3/cron/config"
|
"github.com/ossf/scorecard/v4/cron/config"
|
||||||
"github.com/ossf/scorecard/v3/cron/data"
|
"github.com/ossf/scorecard/v4/cron/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
const ciiBaseURL = "https://bestpractices.coreinfrastructure.org/projects.json"
|
const ciiBaseURL = "https://bestpractices.coreinfrastructure.org/projects.json"
|
||||||
|
@ -24,10 +24,10 @@ import (
|
|||||||
"google.golang.org/protobuf/encoding/protojson"
|
"google.golang.org/protobuf/encoding/protojson"
|
||||||
"google.golang.org/protobuf/types/known/timestamppb"
|
"google.golang.org/protobuf/types/known/timestamppb"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/cron/config"
|
"github.com/ossf/scorecard/v4/cron/config"
|
||||||
"github.com/ossf/scorecard/v3/cron/data"
|
"github.com/ossf/scorecard/v4/cron/data"
|
||||||
"github.com/ossf/scorecard/v3/cron/pubsub"
|
"github.com/ossf/scorecard/v4/cron/pubsub"
|
||||||
"github.com/ossf/scorecard/v3/pkg"
|
"github.com/ossf/scorecard/v4/pkg"
|
||||||
)
|
)
|
||||||
|
|
||||||
func publishToRepoRequestTopic(iter data.Iterator, topicPublisher pubsub.Publisher,
|
func publishToRepoRequestTopic(iter data.Iterator, topicPublisher pubsub.Publisher,
|
||||||
|
@ -20,7 +20,7 @@ import (
|
|||||||
"fmt"
|
"fmt"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/cron/data"
|
"github.com/ossf/scorecard/v4/cron/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Script to add new project repositories to the projects.csv file:
|
// Script to add new project repositories to the projects.csv file:
|
||||||
|
@ -22,7 +22,7 @@ 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/v3/cron/data"
|
"github.com/ossf/scorecard/v4/cron/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
func lessThanURI(x, y data.RepoFormat) bool {
|
func lessThanURI(x, y data.RepoFormat) bool {
|
||||||
|
@ -27,7 +27,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/v3/cron/config"
|
"github.com/ossf/scorecard/v4/cron/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -22,7 +22,7 @@ import (
|
|||||||
|
|
||||||
"github.com/jszwec/csvutil"
|
"github.com/jszwec/csvutil"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients/githubrepo"
|
"github.com/ossf/scorecard/v4/clients/githubrepo"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Iterator interface is used to iterate through list of input repos for the cron job.
|
// Iterator interface is used to iterate through list of input repos for the cron job.
|
||||||
|
@ -21,7 +21,7 @@ import (
|
|||||||
|
|
||||||
"github.com/google/go-cmp/cmp"
|
"github.com/google/go-cmp/cmp"
|
||||||
|
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
)
|
)
|
||||||
|
|
||||||
type outcome struct {
|
type outcome struct {
|
||||||
|
@ -29,8 +29,8 @@ import (
|
|||||||
"github.com/google/go-github/v38/github"
|
"github.com/google/go-github/v38/github"
|
||||||
"golang.org/x/tools/go/vcs"
|
"golang.org/x/tools/go/vcs"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/clients/githubrepo"
|
"github.com/ossf/scorecard/v4/clients/githubrepo"
|
||||||
"github.com/ossf/scorecard/v3/cron/data"
|
"github.com/ossf/scorecard/v4/cron/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -19,7 +19,7 @@ import (
|
|||||||
"bytes"
|
"bytes"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/cron/data"
|
"github.com/ossf/scorecard/v4/cron/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Adds "project=${PROJECT},dependency=true" to the repositories metadata.
|
// Adds "project=${PROJECT},dependency=true" to the repositories metadata.
|
||||||
|
@ -19,7 +19,7 @@ import (
|
|||||||
"log"
|
"log"
|
||||||
"os"
|
"os"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/cron/data"
|
"github.com/ossf/scorecard/v4/cron/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
// Validates data.Iterator used by production PubSub cron job.
|
// Validates data.Iterator used by production PubSub cron job.
|
||||||
|
@ -24,9 +24,9 @@ import (
|
|||||||
|
|
||||||
"go.uber.org/zap/zapcore"
|
"go.uber.org/zap/zapcore"
|
||||||
|
|
||||||
docs "github.com/ossf/scorecard/v3/docs/checks"
|
docs "github.com/ossf/scorecard/v4/docs/checks"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
"github.com/ossf/scorecard/v3/pkg"
|
"github.com/ossf/scorecard/v4/pkg"
|
||||||
)
|
)
|
||||||
|
|
||||||
//nolint
|
//nolint
|
||||||
|
@ -26,8 +26,8 @@ import (
|
|||||||
"github.com/xeipuuv/gojsonschema"
|
"github.com/xeipuuv/gojsonschema"
|
||||||
"go.uber.org/zap/zapcore"
|
"go.uber.org/zap/zapcore"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/pkg"
|
"github.com/ossf/scorecard/v4/pkg"
|
||||||
)
|
)
|
||||||
|
|
||||||
func jsonMockDocRead() *mockDoc {
|
func jsonMockDocRead() *mockDoc {
|
||||||
|
@ -17,7 +17,7 @@ package format
|
|||||||
import (
|
import (
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
docs "github.com/ossf/scorecard/v3/docs/checks"
|
docs "github.com/ossf/scorecard/v4/docs/checks"
|
||||||
)
|
)
|
||||||
|
|
||||||
type mockCheck struct {
|
type mockCheck struct {
|
||||||
|
@ -24,7 +24,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/v3/cron/config"
|
"github.com/ossf/scorecard/v4/cron/config"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errorUndefinedExporter = errors.New("unsupported exporterType")
|
var errorUndefinedExporter = errors.New("unsupported exporterType")
|
||||||
|
@ -29,7 +29,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/v3/cron/data"
|
"github.com/ossf/scorecard/v4/cron/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
var errorPublish = errors.New("total errors when publishing")
|
var errorPublish = errors.New("total errors when publishing")
|
||||||
|
@ -21,7 +21,7 @@ import (
|
|||||||
|
|
||||||
"gocloud.dev/pubsub"
|
"gocloud.dev/pubsub"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/cron/data"
|
"github.com/ossf/scorecard/v4/cron/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
type mockSucceedTopic struct{}
|
type mockSucceedTopic struct{}
|
||||||
|
@ -21,7 +21,7 @@ import (
|
|||||||
|
|
||||||
"google.golang.org/protobuf/encoding/protojson"
|
"google.golang.org/protobuf/encoding/protojson"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/cron/data"
|
"github.com/ossf/scorecard/v4/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.
|
||||||
|
@ -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/v3/cron/data"
|
"github.com/ossf/scorecard/v4/cron/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -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/v3/cron/data"
|
"github.com/ossf/scorecard/v4/cron/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
type receiver interface {
|
type receiver interface {
|
||||||
|
@ -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/v3/cron/data"
|
"github.com/ossf/scorecard/v4/cron/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
var repo1 = "repo1"
|
var repo1 = "repo1"
|
||||||
|
@ -21,7 +21,7 @@ import (
|
|||||||
"strconv"
|
"strconv"
|
||||||
"time"
|
"time"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/cron/data"
|
"github.com/ossf/scorecard/v4/cron/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
|
@ -26,7 +26,7 @@ import (
|
|||||||
"github.com/google/go-containerregistry/pkg/v1/google"
|
"github.com/google/go-containerregistry/pkg/v1/google"
|
||||||
"google.golang.org/protobuf/encoding/protojson"
|
"google.golang.org/protobuf/encoding/protojson"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/cron/data"
|
"github.com/ossf/scorecard/v4/cron/data"
|
||||||
)
|
)
|
||||||
|
|
||||||
const stableTag = "stable"
|
const stableTag = "stable"
|
||||||
|
@ -30,20 +30,20 @@ import (
|
|||||||
"go.uber.org/zap"
|
"go.uber.org/zap"
|
||||||
"go.uber.org/zap/zapcore"
|
"go.uber.org/zap/zapcore"
|
||||||
|
|
||||||
"github.com/ossf/scorecard/v3/checker"
|
"github.com/ossf/scorecard/v4/checker"
|
||||||
"github.com/ossf/scorecard/v3/checks"
|
"github.com/ossf/scorecard/v4/checks"
|
||||||
"github.com/ossf/scorecard/v3/clients"
|
"github.com/ossf/scorecard/v4/clients"
|
||||||
"github.com/ossf/scorecard/v3/clients/githubrepo"
|
"github.com/ossf/scorecard/v4/clients/githubrepo"
|
||||||
githubstats "github.com/ossf/scorecard/v3/clients/githubrepo/stats"
|
githubstats "github.com/ossf/scorecard/v4/clients/githubrepo/stats"
|
||||||
"github.com/ossf/scorecard/v3/cron/config"
|
"github.com/ossf/scorecard/v4/cron/config"
|
||||||
"github.com/ossf/scorecard/v3/cron/data"
|
"github.com/ossf/scorecard/v4/cron/data"
|
||||||
format "github.com/ossf/scorecard/v3/cron/format"
|
format "github.com/ossf/scorecard/v4/cron/format"
|
||||||
"github.com/ossf/scorecard/v3/cron/monitoring"
|
"github.com/ossf/scorecard/v4/cron/monitoring"
|
||||||
"github.com/ossf/scorecard/v3/cron/pubsub"
|
"github.com/ossf/scorecard/v4/cron/pubsub"
|
||||||
docs "github.com/ossf/scorecard/v3/docs/checks"
|
docs "github.com/ossf/scorecard/v4/docs/checks"
|
||||||
sce "github.com/ossf/scorecard/v3/errors"
|
sce "github.com/ossf/scorecard/v4/errors"
|
||||||
"github.com/ossf/scorecard/v3/pkg"
|
"github.com/ossf/scorecard/v4/pkg"
|
||||||
"github.com/ossf/scorecard/v3/stats"
|
"github.com/ossf/scorecard/v4/stats"
|
||||||
)
|
)
|
||||||
|
|
||||||
var ignoreRuntimeErrors = flag.Bool("ignoreRuntimeErrors", false, "if set to true any runtime errors will be ignored")
|
var ignoreRuntimeErrors = flag.Bool("ignoreRuntimeErrors", false, "if set to true any runtime errors will be ignored")
|
||||||
|
Some files were not shown because too many files have changed in this diff Show More
Loading…
Reference in New Issue
Block a user