Projects STRLCPY scorecard Commits 7cd6406a
🤬
Revision indexing in progress... (symbol navigation in revisions will be accurate after indexed)
  • ■ ■ ■ ■ ■ ■
    .gitignore
    1 1  # binary.
    2 2  scorecard
     3 +scorecard.docker
     4 +scorecard.releaser
    3 5  gitblobcache
    4 6  clients/githubrepo/roundtripper/tokens/server/github-auth-server
     7 +clients/githubrepo/roundtripper/tokens/server/github-auth-server.docker
    5 8  cron/internal/data/add/add
    6 9  cron/internal/data/validate/validate
    7 10  cron/internal/data/update/projects-update
    8 11  cron/internal/controller/controller
     12 +cron/internal/controller/controller.docker
    9 13  cron/internal/worker/worker
    10 14  cron/internal/cii/cii-worker
     15 +cron/internal/cii/cii-worker.docker
    11 16  cron/internal/shuffle/shuffle
    12 17  cron/internal/webhook/webhook
     18 +cron/internal/webhook/webhook.docker
    13 19  cron/internal/bq/data-transfer
     20 +cron/internal/bq/data-transfer.docker
    14 21   
    15 22  # Binaries for programs and plugins.
    16 23  *.exe
    skipped 32 lines
  • ■ ■ ■ ■ ■ ■
    Makefile
    skipped 142 lines
    143 143  build-proto: ## Compiles and generates all required protobufs
    144 144  build-proto: cron/internal/data/request.pb.go cron/internal/data/metadata.pb.go
    145 145  cron/internal/data/request.pb.go: cron/internal/data/request.proto | $(PROTOC) $(PROTOC_GEN_GO)
    146  - $(PROTOC) --plugin=$(PROTOC_GEN_GO) --go_out=../../../ cron/internal/data/request.proto
     146 + $(PROTOC) --plugin=$(PROTOC_GEN_GO) --go_out=. --go_opt=paths=source_relative cron/internal/data/request.proto
    147 147  cron/internal/data/metadata.pb.go: cron/internal/data/metadata.proto | $(PROTOC) $(PROTOC_GEN_GO)
    148  - $(PROTOC) --plugin=$(PROTOC_GEN_GO) --go_out=../../../ cron/internal/data/metadata.proto
     148 + $(PROTOC) --plugin=$(PROTOC_GEN_GO) --go_out=. --go_out=paths=source_relative cron/internal/data/metadata.proto
    149 149   
    150 150  generate-mocks: ## Compiles and generates all mocks using mockgen.
    151 151  generate-mocks: clients/mockclients/repo_client.go \
    skipped 27 lines
    179 179   # Validating checks.yaml
    180 180   go run ./docs/checks/internal/validate/main.go
    181 181   
    182  -build-scorecard: ## Runs go build on repo
     182 +SCORECARD_DEPS = $(shell find . -iname "*.go" | grep -v tools/ | grep -v attestor/)
     183 +build-scorecard: ## Build Scorecard CLI
     184 +build-scorecard: scorecard
     185 +scorecard: $(SCORECARD_DEPS)
    183 186   # Run go build and generate scorecard executable
    184 187   CGO_ENABLED=0 go build -trimpath -a -tags netgo -ldflags '$(LDFLAGS)'
     188 +scorecard-docker: ## Build Scorecard CLI Docker image
     189 +scorecard-docker: scorecard.docker
     190 +scorecard.docker: Dockerfile $(SCORECARD_DEPS)
     191 + DOCKER_BUILDKIT=1 docker build . --file Dockerfile \
     192 + --tag $(IMAGE_NAME) && \
     193 + touch scorecard.docker
    185 194   
    186  -build-releaser: ## Runs goreleaser on the repo
     195 +build-releaser: ## Build goreleaser for the Scorecard CLI
     196 +build-releaser: scorecard.releaser
     197 +scorecard.releaser: .goreleaser.yml $(SCORECARD_DEPS) | $(GORELEASER)
    187 198   # Run go releaser on the Scorecard repo
    188  - $(GORELEASER) check
    189  - VERSION_LDFLAGS="$(LDFLAGS)" $(GORELEASER) release --snapshot --rm-dist --skip-publish --skip-sign
     199 + $(GORELEASER) check && \
     200 + VERSION_LDFLAGS="$(LDFLAGS)" $(GORELEASER) release \
     201 + --snapshot --rm-dist --skip-publish --skip-sign && \
     202 + touch scorecard.releaser
    190 203   
    191  -build-controller: ## Runs go build on the cron PubSub controller
     204 +CRON_CONTROLLER_DEPS = $(shell find cron/internal/ -iname "*.go")
     205 +build-controller: ## Build cron controller
     206 +build-controller: cron/internal/controller/controller
     207 +cron/internal/controller/controller: $(CRON_CONTROLLER_DEPS)
    192 208   # Run go build on the cron PubSub controller
    193 209   cd cron/internal/controller && CGO_ENABLED=0 go build -trimpath -a -ldflags '$(LDFLAGS)' -o controller
     210 +cron-controller-docker: ## Build cron controller Docker image
     211 +cron-controller-docker: cron/internal/controller/controller.docker
     212 +cron/internal/controller/controller.docker: cron/internal/controller/Dockerfile $(CRON_CONTROLLER_DEPS)
     213 + DOCKER_BUILDKIT=1 docker build . --file cron/internal/controller/Dockerfile \
     214 + --tag $(IMAGE_NAME)-batch-controller \
     215 + && touch cron/internal/controller/controller.docker
    194 216   
    195 217  build-worker: ## Runs go build on the cron PubSub worker
    196 218   # Run go build on the cron PubSub worker
    197 219   cd cron/internal/worker && CGO_ENABLED=0 go build -trimpath -a -ldflags '$(LDFLAGS)' -o worker
    198 220   
    199  -build-cii-worker: ## Runs go build on the CII worker
     221 +CRON_CII_DEPS = $(shell find cron/internal/ clients/ -iname "*.go")
     222 +build-cii-worker: ## Build cron CII worker
     223 +build-cii-worker: cron/internal/cii/cii-worker
     224 +cron/internal/cii/cii-worker: $(CRON_CII_DEPS)
    200 225   # Run go build on the CII worker
    201 226   cd cron/internal/cii && CGO_ENABLED=0 go build -trimpath -a -ldflags '$(LDFLAGS)' -o cii-worker
     227 +cron-cii-worker-docker: # Build cron CII worker Docker image
     228 +cron-cii-worker-docker: cron/internal/cii/cii-worker.docker
     229 +cron/internal/cii/cii-worker.docker: cron/internal/cii/Dockerfile $(CRON_CII_DEPS)
     230 + DOCKER_BUILDKIT=1 docker build . --file cron/internal/cii/Dockerfile \
     231 + --tag $(IMAGE_NAME)-cii-worker && \
     232 + touch cron/internal/cii/cii-worker.docker
    202 233   
    203  -build-shuffler: ## Runs go build on the cron shuffle script
     234 +CRON_SHUFFLER_DEPS = $(shell find cron/internal/data/ cron/internal/shuffle/ -iname "*.go")
     235 +build-shuffler: ## Build cron shuffle script
     236 +build-shuffler: cron/internal/shuffle/shuffle
     237 +cron/internal/shuffle/shuffle: $(CRON_SHUFFLER_DEPS)
    204 238   # Run go build on the cron shuffle script
    205 239   cd cron/internal/shuffle && CGO_ENABLED=0 go build -trimpath -a -ldflags '$(LDFLAGS)' -o shuffle
    206 240   
    207  -build-bq-transfer: ## Runs go build on the BQ transfer cron job
    208  -build-bq-transfer: ./cron/internal/bq/*.go
     241 +CRON_TRANSFER_DEPS = $(shell find cron/internal/data/ cron/internal/config/ cron/internal/bq/ -iname "*.go")
     242 +build-bq-transfer: ## Build cron BQ transfer worker
     243 +build-bq-transfer: cron/internal/bq/data-transfer
     244 +cron/internal/bq/data-transfer: $(CRON_TRANSFER_DEPS)
    209 245   # Run go build on the Copier cron job
    210 246   cd cron/internal/bq && CGO_ENABLED=0 go build -trimpath -a -ldflags '$(LDFLAGS)' -o data-transfer
     247 +cron-bq-transfer-docker: ## Build cron BQ transfer worker Docker image
     248 +cron-bq-transfer-docker: cron/internal/bq/data-transfer.docker
     249 +cron/internal/bq/data-transfer.docker: cron/internal/bq/Dockerfile $(CRON_TRANSFER_DEPS)
     250 + DOCKER_BUILDKIT=1 docker build . --file cron/internal/bq/Dockerfile \
     251 + --tag $(IMAGE_NAME)-bq-transfer && \
     252 + touch cron/internal/bq/data-transfer.docker
    211 253   
    212  -build-github-server: ## Runs go build on the GitHub auth server
    213  -build-github-server: ./clients/githubrepo/roundtripper/tokens/*
     254 +TOKEN_SERVER_DEPS = $(shell find clients/githubrepo/roundtripper/tokens/ -iname "*.go")
     255 +build-github-server: ## Build GitHub token server
     256 +build-github-server: clients/githubrepo/roundtripper/tokens/server/github-auth-server
     257 +clients/githubrepo/roundtripper/tokens/server/github-auth-server: $(TOKEN_SERVER_DEPS)
    214 258   # Run go build on the GitHub auth server
    215 259   cd clients/githubrepo/roundtripper/tokens/server && \
    216 260   CGO_ENABLED=0 go build -trimpath -a -ldflags '$(LDFLAGS)' -o github-auth-server
     261 +cron-github-server-docker: ## Build GitHub token server Docker image
     262 +cron-github-server-docker: clients/githubrepo/roundtripper/tokens/server/github-auth-server.docker
     263 +clients/githubrepo/roundtripper/tokens/server/github-auth-server.docker: \
     264 + clients/githubrepo/roundtripper/tokens/server/Dockerfile $(TOKEN_SERVER_DEPS)
     265 + DOCKER_BUILDKIT=1 docker build . \
     266 + --file clients/githubrepo/roundtripper/tokens/server/Dockerfile \
     267 + --tag ${IMAGE_NAME}-github-server && \
     268 + touch clients/githubrepo/roundtripper/tokens/server/github-auth-server.docker
    217 269   
    218  -build-webhook: ## Runs go build on the cron webhook
     270 +CRON_WEBHOOK_DEPS = $(shell find cron/internal/webhook/ cron/internal/data/ -iname "*.go")
     271 +build-webhook: ## Build cron webhook server
     272 +build-webhook: cron/internal/webhook/webhook
     273 +cron/internal/webhook/webhook: $(CRON_WEBHOOK_DEPS)
    219 274   # Run go build on the cron webhook
    220 275   cd cron/internal/webhook && CGO_ENABLED=0 go build -trimpath -a -ldflags '$(LDFLAGS)' -o webhook
     276 +cron-webhook-docker: ## Build cron webhook server Docker image
     277 +cron-webhook-docker: cron/internal/webhook/webhook.docker
     278 +cron/internal/webhook/webhook.docker: cron/internal/webhook/Dockerfile $(CRON_WEBHOOK_DEPS)
     279 + DOCKER_BUILDKIT=1 docker build . --file cron/internal/webhook/Dockerfile \
     280 + --tag ${IMAGE_NAME}-webhook && \
     281 + touch cron/internal/webhook/webhook.docker
     282 + 
    221 283   
    222 284  build-add-script: ## Runs go build on the add script
    223 285  build-add-script: cron/internal/data/add/add
    skipped 17 lines
    241 303  .PHONY: dockerbuild $(docker-targets)
    242 304  dockerbuild: $(docker-targets)
    243 305   
    244  -scorecard-docker:
    245  - DOCKER_BUILDKIT=1 docker build . --file Dockerfile --tag $(IMAGE_NAME)
    246  -cron-controller-docker:
    247  - DOCKER_BUILDKIT=1 docker build . --file cron/internal/controller/Dockerfile --tag $(IMAGE_NAME)-batch-controller
    248 306  cron-worker-docker:
    249 307   DOCKER_BUILDKIT=1 docker build . --file cron/internal/worker/Dockerfile --tag $(IMAGE_NAME)-batch-worker
    250  -cron-cii-worker-docker:
    251  - DOCKER_BUILDKIT=1 docker build . --file cron/internal/cii/Dockerfile --tag $(IMAGE_NAME)-cii-worker
    252  -cron-bq-transfer-docker:
    253  - DOCKER_BUILDKIT=1 docker build . --file cron/internal/bq/Dockerfile --tag $(IMAGE_NAME)-bq-transfer
    254  -cron-webhook-docker:
    255  - DOCKER_BUILDKIT=1 docker build . --file cron/internal/webhook/Dockerfile --tag ${IMAGE_NAME}-webhook
    256  -cron-github-server-docker:
    257  - DOCKER_BUILDKIT=1 docker build . --file clients/githubrepo/roundtripper/tokens/server/Dockerfile --tag ${IMAGE_NAME}-github-server
    258 308  ###############################################################################
    259 309   
    260 310  ##@ Tests
    skipped 125 lines
  • ■ ■ ■ ■ ■ ■
    cron/internal/data/metadata.pb.go
    skipped 13 lines
    14 14   
    15 15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16 16  // versions:
    17  -// protoc-gen-go v1.27.1
    18  -// protoc v3.17.3
    19  -// source: cron/data/metadata.proto
     17 +// protoc-gen-go v1.28.1
     18 +// protoc v3.21.6
     19 +// source: cron/internal/data/metadata.proto
    20 20   
    21 21  package data
    22 22   
    23 23  import (
     24 + protoreflect "google.golang.org/protobuf/reflect/protoreflect"
     25 + protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    24 26   reflect "reflect"
    25 27   sync "sync"
    26  - 
    27  - protoreflect "google.golang.org/protobuf/reflect/protoreflect"
    28  - protoimpl "google.golang.org/protobuf/runtime/protoimpl"
    29 28  )
    30 29   
    31 30  const (
    skipped 16 lines
    48 47  func (x *ShardMetadata) Reset() {
    49 48   *x = ShardMetadata{}
    50 49   if protoimpl.UnsafeEnabled {
    51  - mi := &file_cron_data_metadata_proto_msgTypes[0]
     50 + mi := &file_cron_internal_data_metadata_proto_msgTypes[0]
    52 51   ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    53 52   ms.StoreMessageInfo(mi)
    54 53   }
    skipped 6 lines
    61 60  func (*ShardMetadata) ProtoMessage() {}
    62 61   
    63 62  func (x *ShardMetadata) ProtoReflect() protoreflect.Message {
    64  - mi := &file_cron_data_metadata_proto_msgTypes[0]
     63 + mi := &file_cron_internal_data_metadata_proto_msgTypes[0]
    65 64   if protoimpl.UnsafeEnabled && x != nil {
    66 65   ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    67 66   if ms.LoadMessageInfo() == nil {
    skipped 6 lines
    74 73   
    75 74  // Deprecated: Use ShardMetadata.ProtoReflect.Descriptor instead.
    76 75  func (*ShardMetadata) Descriptor() ([]byte, []int) {
    77  - return file_cron_data_metadata_proto_rawDescGZIP(), []int{0}
     76 + return file_cron_internal_data_metadata_proto_rawDescGZIP(), []int{0}
    78 77  }
    79 78   
    80 79  func (x *ShardMetadata) GetShardLoc() string {
    skipped 17 lines
    98 97   return ""
    99 98  }
    100 99   
    101  -var File_cron_data_metadata_proto protoreflect.FileDescriptor
     100 +var File_cron_internal_data_metadata_proto protoreflect.FileDescriptor
    102 101   
    103  -var file_cron_data_metadata_proto_rawDesc = []byte{
    104  - 0x0a, 0x18, 0x63, 0x72, 0x6f, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x6d, 0x65, 0x74, 0x61,
    105  - 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x6f, 0x73, 0x73, 0x66,
    106  - 0x2e, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x72, 0x64, 0x2e, 0x63, 0x72, 0x6f, 0x6e, 0x2e,
    107  - 0x64, 0x61, 0x74, 0x61, 0x22, 0xa2, 0x01, 0x0a, 0x0d, 0x53, 0x68, 0x61, 0x72, 0x64, 0x4d, 0x65,
    108  - 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x20, 0x0a, 0x09, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f,
    109  - 0x6c, 0x6f, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x73, 0x68, 0x61,
    110  - 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x6e, 0x75, 0x6d, 0x5f,
    111  - 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 0x52, 0x08, 0x6e,
    112  - 0x75, 0x6d, 0x53, 0x68, 0x61, 0x72, 0x64, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a, 0x63, 0x6f,
    113  - 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x02,
    114  - 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x68, 0x61, 0x88, 0x01, 0x01, 0x42, 0x0c,
    115  - 0x0a, 0x0a, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x6c, 0x6f, 0x63, 0x42, 0x0c, 0x0a, 0x0a,
    116  - 0x5f, 0x6e, 0x75, 0x6d, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x42, 0x0d, 0x0a, 0x0b, 0x5f, 0x63,
    117  - 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x42, 0x25, 0x5a, 0x23, 0x67, 0x69, 0x74,
    118  - 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x73, 0x73, 0x66, 0x2f, 0x73, 0x63, 0x6f,
    119  - 0x72, 0x65, 0x63, 0x61, 0x72, 0x64, 0x2f, 0x63, 0x72, 0x6f, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61,
    120  - 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
     102 +var file_cron_internal_data_metadata_proto_rawDesc = []byte{
     103 + 0x0a, 0x21, 0x63, 0x72, 0x6f, 0x6e, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f,
     104 + 0x64, 0x61, 0x74, 0x61, 0x2f, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x70, 0x72,
     105 + 0x6f, 0x74, 0x6f, 0x12, 0x21, 0x6f, 0x73, 0x73, 0x66, 0x2e, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x63,
     106 + 0x61, 0x72, 0x64, 0x2e, 0x63, 0x72, 0x6f, 0x6e, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61,
     107 + 0x6c, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x22, 0xa2, 0x01, 0x0a, 0x0d, 0x53, 0x68, 0x61, 0x72, 0x64,
     108 + 0x4d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x12, 0x20, 0x0a, 0x09, 0x73, 0x68, 0x61, 0x72,
     109 + 0x64, 0x5f, 0x6c, 0x6f, 0x63, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x08, 0x73,
     110 + 0x68, 0x61, 0x72, 0x64, 0x4c, 0x6f, 0x63, 0x88, 0x01, 0x01, 0x12, 0x20, 0x0a, 0x09, 0x6e, 0x75,
     111 + 0x6d, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x01, 0x52,
     112 + 0x08, 0x6e, 0x75, 0x6d, 0x53, 0x68, 0x61, 0x72, 0x64, 0x88, 0x01, 0x01, 0x12, 0x22, 0x0a, 0x0a,
     113 + 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x18, 0x03, 0x20, 0x01, 0x28, 0x09,
     114 + 0x48, 0x02, 0x52, 0x09, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x53, 0x68, 0x61, 0x88, 0x01, 0x01,
     115 + 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x6c, 0x6f, 0x63, 0x42, 0x0c,
     116 + 0x0a, 0x0a, 0x5f, 0x6e, 0x75, 0x6d, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x42, 0x0d, 0x0a, 0x0b,
     117 + 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x5f, 0x73, 0x68, 0x61, 0x42, 0x2e, 0x5a, 0x2c, 0x67,
     118 + 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x73, 0x73, 0x66, 0x2f, 0x73,
     119 + 0x63, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x72, 0x64, 0x2f, 0x63, 0x72, 0x6f, 0x6e, 0x2f, 0x69, 0x6e,
     120 + 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f,
     121 + 0x74, 0x6f, 0x33,
    121 122  }
    122 123   
    123 124  var (
    124  - file_cron_data_metadata_proto_rawDescOnce sync.Once
    125  - file_cron_data_metadata_proto_rawDescData = file_cron_data_metadata_proto_rawDesc
     125 + file_cron_internal_data_metadata_proto_rawDescOnce sync.Once
     126 + file_cron_internal_data_metadata_proto_rawDescData = file_cron_internal_data_metadata_proto_rawDesc
    126 127  )
    127 128   
    128  -func file_cron_data_metadata_proto_rawDescGZIP() []byte {
    129  - file_cron_data_metadata_proto_rawDescOnce.Do(func() {
    130  - file_cron_data_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_cron_data_metadata_proto_rawDescData)
     129 +func file_cron_internal_data_metadata_proto_rawDescGZIP() []byte {
     130 + file_cron_internal_data_metadata_proto_rawDescOnce.Do(func() {
     131 + file_cron_internal_data_metadata_proto_rawDescData = protoimpl.X.CompressGZIP(file_cron_internal_data_metadata_proto_rawDescData)
    131 132   })
    132  - return file_cron_data_metadata_proto_rawDescData
     133 + return file_cron_internal_data_metadata_proto_rawDescData
    133 134  }
    134 135   
    135  -var file_cron_data_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
    136  -var file_cron_data_metadata_proto_goTypes = []interface{}{
    137  - (*ShardMetadata)(nil), // 0: ossf.scorecard.cron.data.ShardMetadata
     136 +var file_cron_internal_data_metadata_proto_msgTypes = make([]protoimpl.MessageInfo, 1)
     137 +var file_cron_internal_data_metadata_proto_goTypes = []interface{}{
     138 + (*ShardMetadata)(nil), // 0: ossf.scorecard.cron.internal.data.ShardMetadata
    138 139  }
    139  -var file_cron_data_metadata_proto_depIdxs = []int32{
     140 +var file_cron_internal_data_metadata_proto_depIdxs = []int32{
    140 141   0, // [0:0] is the sub-list for method output_type
    141 142   0, // [0:0] is the sub-list for method input_type
    142 143   0, // [0:0] is the sub-list for extension type_name
    skipped 1 lines
    144 145   0, // [0:0] is the sub-list for field type_name
    145 146  }
    146 147   
    147  -func init() { file_cron_data_metadata_proto_init() }
    148  -func file_cron_data_metadata_proto_init() {
    149  - if File_cron_data_metadata_proto != nil {
     148 +func init() { file_cron_internal_data_metadata_proto_init() }
     149 +func file_cron_internal_data_metadata_proto_init() {
     150 + if File_cron_internal_data_metadata_proto != nil {
    150 151   return
    151 152   }
    152 153   if !protoimpl.UnsafeEnabled {
    153  - file_cron_data_metadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
     154 + file_cron_internal_data_metadata_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
    154 155   switch v := v.(*ShardMetadata); i {
    155 156   case 0:
    156 157   return &v.state
    skipped 6 lines
    163 164   }
    164 165   }
    165 166   }
    166  - file_cron_data_metadata_proto_msgTypes[0].OneofWrappers = []interface{}{}
     167 + file_cron_internal_data_metadata_proto_msgTypes[0].OneofWrappers = []interface{}{}
    167 168   type x struct{}
    168 169   out := protoimpl.TypeBuilder{
    169 170   File: protoimpl.DescBuilder{
    170 171   GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
    171  - RawDescriptor: file_cron_data_metadata_proto_rawDesc,
     172 + RawDescriptor: file_cron_internal_data_metadata_proto_rawDesc,
    172 173   NumEnums: 0,
    173 174   NumMessages: 1,
    174 175   NumExtensions: 0,
    175 176   NumServices: 0,
    176 177   },
    177  - GoTypes: file_cron_data_metadata_proto_goTypes,
    178  - DependencyIndexes: file_cron_data_metadata_proto_depIdxs,
    179  - MessageInfos: file_cron_data_metadata_proto_msgTypes,
     178 + GoTypes: file_cron_internal_data_metadata_proto_goTypes,
     179 + DependencyIndexes: file_cron_internal_data_metadata_proto_depIdxs,
     180 + MessageInfos: file_cron_internal_data_metadata_proto_msgTypes,
    180 181   }.Build()
    181  - File_cron_data_metadata_proto = out.File
    182  - file_cron_data_metadata_proto_rawDesc = nil
    183  - file_cron_data_metadata_proto_goTypes = nil
    184  - file_cron_data_metadata_proto_depIdxs = nil
     182 + File_cron_internal_data_metadata_proto = out.File
     183 + file_cron_internal_data_metadata_proto_rawDesc = nil
     184 + file_cron_internal_data_metadata_proto_goTypes = nil
     185 + file_cron_internal_data_metadata_proto_depIdxs = nil
    185 186  }
    186 187   
  • ■ ■ ■ ■ ■ ■
    cron/internal/data/metadata.proto
    skipped 13 lines
    14 14   
    15 15  syntax = "proto3";
    16 16   
    17  -package ossf.scorecard.cron.data;
     17 +package ossf.scorecard.cron.internal.data;
    18 18   
    19  -option go_package = "github.com/ossf/scorecard/cron/data";
     19 +option go_package = "github.com/ossf/scorecard/cron/internal/data";
    20 20   
    21 21  message ShardMetadata {
    22 22   optional string shard_loc = 1;
    skipped 4 lines
  • ■ ■ ■ ■ ■ ■
    cron/internal/data/request.pb.go
    skipped 13 lines
    14 14   
    15 15  // Code generated by protoc-gen-go. DO NOT EDIT.
    16 16  // versions:
    17  -// protoc-gen-go v1.27.1
    18  -// protoc v3.17.3
    19  -// source: cron/data/request.proto
     17 +// protoc-gen-go v1.28.1
     18 +// protoc v3.21.6
     19 +// source: cron/internal/data/request.proto
    20 20   
    21 21  package data
    22 22   
    skipped 25 lines
    48 48  func (x *Repo) Reset() {
    49 49   *x = Repo{}
    50 50   if protoimpl.UnsafeEnabled {
    51  - mi := &file_cron_data_request_proto_msgTypes[0]
     51 + mi := &file_cron_internal_data_request_proto_msgTypes[0]
    52 52   ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    53 53   ms.StoreMessageInfo(mi)
    54 54   }
    skipped 6 lines
    61 61  func (*Repo) ProtoMessage() {}
    62 62   
    63 63  func (x *Repo) ProtoReflect() protoreflect.Message {
    64  - mi := &file_cron_data_request_proto_msgTypes[0]
     64 + mi := &file_cron_internal_data_request_proto_msgTypes[0]
    65 65   if protoimpl.UnsafeEnabled && x != nil {
    66 66   ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    67 67   if ms.LoadMessageInfo() == nil {
    skipped 6 lines
    74 74   
    75 75  // Deprecated: Use Repo.ProtoReflect.Descriptor instead.
    76 76  func (*Repo) Descriptor() ([]byte, []int) {
    77  - return file_cron_data_request_proto_rawDescGZIP(), []int{0}
     77 + return file_cron_internal_data_request_proto_rawDescGZIP(), []int{0}
    78 78  }
    79 79   
    80 80  func (x *Repo) GetUrl() string {
    skipped 30 lines
    111 111  func (x *ScorecardBatchRequest) Reset() {
    112 112   *x = ScorecardBatchRequest{}
    113 113   if protoimpl.UnsafeEnabled {
    114  - mi := &file_cron_data_request_proto_msgTypes[1]
     114 + mi := &file_cron_internal_data_request_proto_msgTypes[1]
    115 115   ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    116 116   ms.StoreMessageInfo(mi)
    117 117   }
    skipped 6 lines
    124 124  func (*ScorecardBatchRequest) ProtoMessage() {}
    125 125   
    126 126  func (x *ScorecardBatchRequest) ProtoReflect() protoreflect.Message {
    127  - mi := &file_cron_data_request_proto_msgTypes[1]
     127 + mi := &file_cron_internal_data_request_proto_msgTypes[1]
    128 128   if protoimpl.UnsafeEnabled && x != nil {
    129 129   ms := protoimpl.X.MessageStateOf(protoimpl.Pointer(x))
    130 130   if ms.LoadMessageInfo() == nil {
    skipped 6 lines
    137 137   
    138 138  // Deprecated: Use ScorecardBatchRequest.ProtoReflect.Descriptor instead.
    139 139  func (*ScorecardBatchRequest) Descriptor() ([]byte, []int) {
    140  - return file_cron_data_request_proto_rawDescGZIP(), []int{1}
     140 + return file_cron_internal_data_request_proto_rawDescGZIP(), []int{1}
    141 141  }
    142 142   
    143 143  func (x *ScorecardBatchRequest) GetRepos() []*Repo {
    skipped 17 lines
    161 161   return nil
    162 162  }
    163 163   
    164  -var File_cron_data_request_proto protoreflect.FileDescriptor
     164 +var File_cron_internal_data_request_proto protoreflect.FileDescriptor
    165 165   
    166  -var file_cron_data_request_proto_rawDesc = []byte{
    167  - 0x0a, 0x17, 0x63, 0x72, 0x6f, 0x6e, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x2f, 0x72, 0x65, 0x71, 0x75,
    168  - 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x12, 0x18, 0x6f, 0x73, 0x73, 0x66, 0x2e,
    169  - 0x73, 0x63, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x72, 0x64, 0x2e, 0x63, 0x72, 0x6f, 0x6e, 0x2e, 0x64,
    170  - 0x61, 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72, 0x6f, 0x74,
    171  - 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x2e, 0x70,
    172  - 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x69, 0x0a, 0x04, 0x52, 0x65, 0x70, 0x6f, 0x12, 0x15, 0x0a, 0x03,
    173  - 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x75, 0x72, 0x6c,
    174  - 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18, 0x03, 0x20,
    175  - 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x88, 0x01, 0x01,
    176  - 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02, 0x20, 0x03,
    177  - 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06, 0x0a, 0x04,
    178  - 0x5f, 0x75, 0x72, 0x6c, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x22,
    179  - 0xcc, 0x01, 0x0a, 0x15, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x72, 0x64, 0x42, 0x61, 0x74,
    180  - 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x34, 0x0a, 0x05, 0x72, 0x65, 0x70,
    181  - 0x6f, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x1e, 0x2e, 0x6f, 0x73, 0x73, 0x66, 0x2e,
    182  - 0x73, 0x63, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x72, 0x64, 0x2e, 0x63, 0x72, 0x6f, 0x6e, 0x2e, 0x64,
    183  - 0x61, 0x74, 0x61, 0x2e, 0x52, 0x65, 0x70, 0x6f, 0x52, 0x05, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x12,
    184  - 0x20, 0x0a, 0x09, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01,
    185  - 0x28, 0x05, 0x48, 0x00, 0x52, 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x4e, 0x75, 0x6d, 0x88, 0x01,
    186  - 0x01, 0x12, 0x3a, 0x0a, 0x08, 0x6a, 0x6f, 0x62, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20,
    187  - 0x01, 0x28, 0x0b, 0x32, 0x1a, 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f,
    188  - 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48,
    189  - 0x01, 0x52, 0x07, 0x6a, 0x6f, 0x62, 0x54, 0x69, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a,
    190  - 0x0a, 0x5f, 0x73, 0x68, 0x61, 0x72, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x42, 0x0b, 0x0a, 0x09, 0x5f,
    191  - 0x6a, 0x6f, 0x62, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x42, 0x25,
    192  - 0x5a, 0x23, 0x67, 0x69, 0x74, 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x73, 0x73,
    193  - 0x66, 0x2f, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x72, 0x64, 0x2f, 0x63, 0x72, 0x6f, 0x6e,
    194  - 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x33,
     166 +var file_cron_internal_data_request_proto_rawDesc = []byte{
     167 + 0x0a, 0x20, 0x63, 0x72, 0x6f, 0x6e, 0x2f, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2f,
     168 + 0x64, 0x61, 0x74, 0x61, 0x2f, 0x72, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x2e, 0x70, 0x72, 0x6f,
     169 + 0x74, 0x6f, 0x12, 0x21, 0x6f, 0x73, 0x73, 0x66, 0x2e, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x63, 0x61,
     170 + 0x72, 0x64, 0x2e, 0x63, 0x72, 0x6f, 0x6e, 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c,
     171 + 0x2e, 0x64, 0x61, 0x74, 0x61, 0x1a, 0x1f, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2f, 0x70, 0x72,
     172 + 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66, 0x2f, 0x74, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70,
     173 + 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x22, 0x69, 0x0a, 0x04, 0x52, 0x65, 0x70, 0x6f, 0x12, 0x15,
     174 + 0x0a, 0x03, 0x75, 0x72, 0x6c, 0x18, 0x01, 0x20, 0x01, 0x28, 0x09, 0x48, 0x00, 0x52, 0x03, 0x75,
     175 + 0x72, 0x6c, 0x88, 0x01, 0x01, 0x12, 0x1b, 0x0a, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x18,
     176 + 0x03, 0x20, 0x01, 0x28, 0x09, 0x48, 0x01, 0x52, 0x06, 0x63, 0x6f, 0x6d, 0x6d, 0x69, 0x74, 0x88,
     177 + 0x01, 0x01, 0x12, 0x1a, 0x0a, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x18, 0x02,
     178 + 0x20, 0x03, 0x28, 0x09, 0x52, 0x08, 0x6d, 0x65, 0x74, 0x61, 0x64, 0x61, 0x74, 0x61, 0x42, 0x06,
     179 + 0x0a, 0x04, 0x5f, 0x75, 0x72, 0x6c, 0x42, 0x09, 0x0a, 0x07, 0x5f, 0x63, 0x6f, 0x6d, 0x6d, 0x69,
     180 + 0x74, 0x22, 0xd5, 0x01, 0x0a, 0x15, 0x53, 0x63, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x72, 0x64, 0x42,
     181 + 0x61, 0x74, 0x63, 0x68, 0x52, 0x65, 0x71, 0x75, 0x65, 0x73, 0x74, 0x12, 0x3d, 0x0a, 0x05, 0x72,
     182 + 0x65, 0x70, 0x6f, 0x73, 0x18, 0x04, 0x20, 0x03, 0x28, 0x0b, 0x32, 0x27, 0x2e, 0x6f, 0x73, 0x73,
     183 + 0x66, 0x2e, 0x73, 0x63, 0x6f, 0x72, 0x65, 0x63, 0x61, 0x72, 0x64, 0x2e, 0x63, 0x72, 0x6f, 0x6e,
     184 + 0x2e, 0x69, 0x6e, 0x74, 0x65, 0x72, 0x6e, 0x61, 0x6c, 0x2e, 0x64, 0x61, 0x74, 0x61, 0x2e, 0x52,
     185 + 0x65, 0x70, 0x6f, 0x52, 0x05, 0x72, 0x65, 0x70, 0x6f, 0x73, 0x12, 0x20, 0x0a, 0x09, 0x73, 0x68,
     186 + 0x61, 0x72, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x18, 0x02, 0x20, 0x01, 0x28, 0x05, 0x48, 0x00, 0x52,
     187 + 0x08, 0x73, 0x68, 0x61, 0x72, 0x64, 0x4e, 0x75, 0x6d, 0x88, 0x01, 0x01, 0x12, 0x3a, 0x0a, 0x08,
     188 + 0x6a, 0x6f, 0x62, 0x5f, 0x74, 0x69, 0x6d, 0x65, 0x18, 0x03, 0x20, 0x01, 0x28, 0x0b, 0x32, 0x1a,
     189 + 0x2e, 0x67, 0x6f, 0x6f, 0x67, 0x6c, 0x65, 0x2e, 0x70, 0x72, 0x6f, 0x74, 0x6f, 0x62, 0x75, 0x66,
     190 + 0x2e, 0x54, 0x69, 0x6d, 0x65, 0x73, 0x74, 0x61, 0x6d, 0x70, 0x48, 0x01, 0x52, 0x07, 0x6a, 0x6f,
     191 + 0x62, 0x54, 0x69, 0x6d, 0x65, 0x88, 0x01, 0x01, 0x42, 0x0c, 0x0a, 0x0a, 0x5f, 0x73, 0x68, 0x61,
     192 + 0x72, 0x64, 0x5f, 0x6e, 0x75, 0x6d, 0x42, 0x0b, 0x0a, 0x09, 0x5f, 0x6a, 0x6f, 0x62, 0x5f, 0x74,
     193 + 0x69, 0x6d, 0x65, 0x4a, 0x04, 0x08, 0x01, 0x10, 0x02, 0x42, 0x2e, 0x5a, 0x2c, 0x67, 0x69, 0x74,
     194 + 0x68, 0x75, 0x62, 0x2e, 0x63, 0x6f, 0x6d, 0x2f, 0x6f, 0x73, 0x73, 0x66, 0x2f, 0x73, 0x63, 0x6f,
     195 + 0x72, 0x65, 0x63, 0x61, 0x72, 0x64, 0x2f, 0x63, 0x72, 0x6f, 0x6e, 0x2f, 0x69, 0x6e, 0x74, 0x65,
     196 + 0x72, 0x6e, 0x61, 0x6c, 0x2f, 0x64, 0x61, 0x74, 0x61, 0x62, 0x06, 0x70, 0x72, 0x6f, 0x74, 0x6f,
     197 + 0x33,
    195 198  }
    196 199   
    197 200  var (
    198  - file_cron_data_request_proto_rawDescOnce sync.Once
    199  - file_cron_data_request_proto_rawDescData = file_cron_data_request_proto_rawDesc
     201 + file_cron_internal_data_request_proto_rawDescOnce sync.Once
     202 + file_cron_internal_data_request_proto_rawDescData = file_cron_internal_data_request_proto_rawDesc
    200 203  )
    201 204   
    202  -func file_cron_data_request_proto_rawDescGZIP() []byte {
    203  - file_cron_data_request_proto_rawDescOnce.Do(func() {
    204  - file_cron_data_request_proto_rawDescData = protoimpl.X.CompressGZIP(file_cron_data_request_proto_rawDescData)
     205 +func file_cron_internal_data_request_proto_rawDescGZIP() []byte {
     206 + file_cron_internal_data_request_proto_rawDescOnce.Do(func() {
     207 + file_cron_internal_data_request_proto_rawDescData = protoimpl.X.CompressGZIP(file_cron_internal_data_request_proto_rawDescData)
    205 208   })
    206  - return file_cron_data_request_proto_rawDescData
     209 + return file_cron_internal_data_request_proto_rawDescData
    207 210  }
    208 211   
    209  -var file_cron_data_request_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
    210  -var file_cron_data_request_proto_goTypes = []interface{}{
    211  - (*Repo)(nil), // 0: ossf.scorecard.cron.data.Repo
    212  - (*ScorecardBatchRequest)(nil), // 1: ossf.scorecard.cron.data.ScorecardBatchRequest
     212 +var file_cron_internal_data_request_proto_msgTypes = make([]protoimpl.MessageInfo, 2)
     213 +var file_cron_internal_data_request_proto_goTypes = []interface{}{
     214 + (*Repo)(nil), // 0: ossf.scorecard.cron.internal.data.Repo
     215 + (*ScorecardBatchRequest)(nil), // 1: ossf.scorecard.cron.internal.data.ScorecardBatchRequest
    213 216   (*timestamppb.Timestamp)(nil), // 2: google.protobuf.Timestamp
    214 217  }
    215  -var file_cron_data_request_proto_depIdxs = []int32{
    216  - 0, // 0: ossf.scorecard.cron.data.ScorecardBatchRequest.repos:type_name -> ossf.scorecard.cron.data.Repo
    217  - 2, // 1: ossf.scorecard.cron.data.ScorecardBatchRequest.job_time:type_name -> google.protobuf.Timestamp
     218 +var file_cron_internal_data_request_proto_depIdxs = []int32{
     219 + 0, // 0: ossf.scorecard.cron.internal.data.ScorecardBatchRequest.repos:type_name -> ossf.scorecard.cron.internal.data.Repo
     220 + 2, // 1: ossf.scorecard.cron.internal.data.ScorecardBatchRequest.job_time:type_name -> google.protobuf.Timestamp
    218 221   2, // [2:2] is the sub-list for method output_type
    219 222   2, // [2:2] is the sub-list for method input_type
    220 223   2, // [2:2] is the sub-list for extension type_name
    skipped 1 lines
    222 225   0, // [0:2] is the sub-list for field type_name
    223 226  }
    224 227   
    225  -func init() { file_cron_data_request_proto_init() }
    226  -func file_cron_data_request_proto_init() {
    227  - if File_cron_data_request_proto != nil {
     228 +func init() { file_cron_internal_data_request_proto_init() }
     229 +func file_cron_internal_data_request_proto_init() {
     230 + if File_cron_internal_data_request_proto != nil {
    228 231   return
    229 232   }
    230 233   if !protoimpl.UnsafeEnabled {
    231  - file_cron_data_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
     234 + file_cron_internal_data_request_proto_msgTypes[0].Exporter = func(v interface{}, i int) interface{} {
    232 235   switch v := v.(*Repo); i {
    233 236   case 0:
    234 237   return &v.state
    skipped 5 lines
    240 243   return nil
    241 244   }
    242 245   }
    243  - file_cron_data_request_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
     246 + file_cron_internal_data_request_proto_msgTypes[1].Exporter = func(v interface{}, i int) interface{} {
    244 247   switch v := v.(*ScorecardBatchRequest); i {
    245 248   case 0:
    246 249   return &v.state
    skipped 6 lines
    253 256   }
    254 257   }
    255 258   }
    256  - file_cron_data_request_proto_msgTypes[0].OneofWrappers = []interface{}{}
    257  - file_cron_data_request_proto_msgTypes[1].OneofWrappers = []interface{}{}
     259 + file_cron_internal_data_request_proto_msgTypes[0].OneofWrappers = []interface{}{}
     260 + file_cron_internal_data_request_proto_msgTypes[1].OneofWrappers = []interface{}{}
    258 261   type x struct{}
    259 262   out := protoimpl.TypeBuilder{
    260 263   File: protoimpl.DescBuilder{
    261 264   GoPackagePath: reflect.TypeOf(x{}).PkgPath(),
    262  - RawDescriptor: file_cron_data_request_proto_rawDesc,
     265 + RawDescriptor: file_cron_internal_data_request_proto_rawDesc,
    263 266   NumEnums: 0,
    264 267   NumMessages: 2,
    265 268   NumExtensions: 0,
    266 269   NumServices: 0,
    267 270   },
    268  - GoTypes: file_cron_data_request_proto_goTypes,
    269  - DependencyIndexes: file_cron_data_request_proto_depIdxs,
    270  - MessageInfos: file_cron_data_request_proto_msgTypes,
     271 + GoTypes: file_cron_internal_data_request_proto_goTypes,
     272 + DependencyIndexes: file_cron_internal_data_request_proto_depIdxs,
     273 + MessageInfos: file_cron_internal_data_request_proto_msgTypes,
    271 274   }.Build()
    272  - File_cron_data_request_proto = out.File
    273  - file_cron_data_request_proto_rawDesc = nil
    274  - file_cron_data_request_proto_goTypes = nil
    275  - file_cron_data_request_proto_depIdxs = nil
     275 + File_cron_internal_data_request_proto = out.File
     276 + file_cron_internal_data_request_proto_rawDesc = nil
     277 + file_cron_internal_data_request_proto_goTypes = nil
     278 + file_cron_internal_data_request_proto_depIdxs = nil
    276 279  }
    277 280   
  • ■ ■ ■ ■ ■ ■
    cron/internal/data/request.proto
    skipped 13 lines
    14 14   
    15 15  syntax = "proto3";
    16 16   
    17  -package ossf.scorecard.cron.data;
     17 +package ossf.scorecard.cron.internal.data;
    18 18   
    19 19  import "google/protobuf/timestamp.proto";
    20 20   
    21  -option go_package = "github.com/ossf/scorecard/cron/data";
     21 +option go_package = "github.com/ossf/scorecard/cron/internal/data";
    22 22   
    23 23  message Repo {
    24 24   optional string url = 1;
    skipped 11 lines
Please wait...
Page is in error, reload to recover