зеркало из https://github.com/golang/vulndb.git
data: add lint check for ID and add ID to all YAML reports
Adds the ID field to all YAML reports and adds a lint check to enforce that all reports have the correct value for the field. Also adds a step to "vulnreport fix" to fix the ID if needed. Change-Id: I51f4654e127528e1dbbfcb9c59da3658ad52098b Reviewed-on: https://go-review.googlesource.com/c/vulndb/+/498281 Run-TryBot: Tatiana Bradley <tatianabradley@google.com> TryBot-Result: Gopher Robot <gobot@golang.org> Reviewed-by: Damien Neil <dneil@google.com>
This commit is contained in:
Родитель
143d2ac990
Коммит
f1409b0461
|
@ -666,6 +666,13 @@ func fix(ctx context.Context, filename string, ghsaClient *ghsa.Client) (err err
|
|||
if err != nil {
|
||||
return err
|
||||
}
|
||||
// Add/fix the Go ID if needed.
|
||||
if goID := report.GoID(filename); goID != r.ID {
|
||||
r.ID = goID
|
||||
}
|
||||
if err := r.CheckFilename(filename); err != nil {
|
||||
return err
|
||||
}
|
||||
if lints := r.Lint(); len(lints) > 0 {
|
||||
r.Fix()
|
||||
}
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2021-0144
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: collectd.org
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2021-0145
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: std
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2021-0146
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: qpid.apache.org
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2021-0147
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2021-0148
|
||||
excluded: NOT_IMPORTABLE
|
||||
modules:
|
||||
- module: gitlab.com/gitlab-org/gitlab-shell
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2021-0149
|
||||
excluded: NOT_A_VULNERABILITY
|
||||
modules:
|
||||
- module: std
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2021-0150
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2021-0151
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2021-0152
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2021-0153
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2021-0155
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2021-0156
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2021-0161
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: qpid.apache.org
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2021-0162
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: qpid.apache.org
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0167
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: qpid.apache.org
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0168
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: collectd.org
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0169
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0170
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0173
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0174
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0175
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0176
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: gitweb.gentoo.org/repo/gentoo.git
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0179
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: qpid.apache.org
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0180
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: qpid.apache.org
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0181
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/channelcat/sanic
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0182
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0183
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0184
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0185
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: gitweb.gentoo.org/repo/gentoo.git
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0186
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0188
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: gitlab.com/graphviz/graphviz
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0194
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: qpid.apache.org
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0195
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0196
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0199
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: gitlab.com/gitlab-org/gitlab-pages
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0200
|
||||
excluded: NOT_IMPORTABLE
|
||||
modules:
|
||||
- module: gitlab.com/gitlab-org/gitlab-workhorse
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0202
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0204
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0205
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0206
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0207
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0208
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: gitlab.com/graphviz/graphviz
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0210
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0214
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: std
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0215
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0216
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/rapid7/metasploit-framework
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0218
|
||||
excluded: NOT_IMPORTABLE
|
||||
modules:
|
||||
- module: gitlab.com/gitlab-org/gitlab-workhorse
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0219
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: unit.nginx.org
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0221
|
||||
excluded: NOT_A_VULNERABILITY
|
||||
modules:
|
||||
- module: std
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0222
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: gitlab.com/graphviz/graphviz
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0231
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/schollz/rwtxt
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0232
|
||||
excluded: NOT_IMPORTABLE
|
||||
modules:
|
||||
- module: gitlab.com/gitlab-org/labkit
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0249
|
||||
excluded: NOT_IMPORTABLE
|
||||
modules:
|
||||
- module: github.com/cloudflare/cfrpki
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0250
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/cloudflare/cfrpki
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0255
|
||||
excluded: NOT_IMPORTABLE
|
||||
modules:
|
||||
- module: github.com/cosmos/cosmos-sdk
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0257
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/opencontainers/distribution-spec
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0259
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/grafana/grafana
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0260
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/fluxcd/kustomize-controller
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0261
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/minio/console
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0262
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/edgexfoundry/app-functions-sdk-go
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0266
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/hyperledger/fabric
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0267
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/hyperledger/fabric
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0268
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/open-policy-agent/gatekeeper
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0270
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/google/exposure-notifications-verification-server
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0271
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/protocolbuffers/protobuf
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0275
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/grafana/grafana
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0276
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/grafana/grafana
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0277
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/grafana/grafana
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0278
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/containerd/containerd
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0279
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/sourcegraph/sourcegraph
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0280
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/kyma-project/kyma
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0281
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/containers/podman
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0282
|
||||
excluded: NOT_IMPORTABLE
|
||||
modules:
|
||||
- module: github.com/spinnaker/spinnaker
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0283
|
||||
excluded: NOT_IMPORTABLE
|
||||
modules:
|
||||
- module: github.com/crypto-org-chain/cronos
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0284
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/h2o/h2o
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0285
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/minio/minio
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0286
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/unicorn-engine/unicorn
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0287
|
||||
excluded: NOT_GO_CODE
|
||||
modules:
|
||||
- module: github.com/Ericsson/codechecker
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0290
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/spinnaker/spinnaker
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0291
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/owncast/owncast
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0292
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: gitlab.com/gitlab-org/gitlab-runner
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0293
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: gitlab.com/gitlab-org/gitaly
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0295
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/authzed/spicedb
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0296
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/grafana/grafana
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0297
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/istio/istio
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0298
|
||||
excluded: NOT_IMPORTABLE
|
||||
modules:
|
||||
- module: github.com/github/gh-ost
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0299
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/istio/istio
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0301
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/sipcapture/homer-app
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0302
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/navidrome/navidrome
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0303
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/casdoor/casdoor
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0304
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/argoproj/argo-cd
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0305
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/grafana/agent
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0306
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/foxcpp/maddy
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0307
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/nats-io/nats-server
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0308
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/go-gitea/gitea
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0309
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/go-gitea/gitea
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0310
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/go-gitea/gitea
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0311
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/grafana/grafana
|
||||
|
|
|
@ -1,3 +1,4 @@
|
|||
id: GO-2022-0312
|
||||
excluded: EFFECTIVELY_PRIVATE
|
||||
modules:
|
||||
- module: github.com/grafana/grafana
|
||||
|
|
Некоторые файлы не были показаны из-за слишком большого количества измененных файлов Показать больше
Загрузка…
Ссылка в новой задаче