Skip to content

Commit

Permalink
Merge pull request #2 from zyyw/sbom-fake-scanner
Browse files Browse the repository at this point in the history
feat: fake scanner implements spec v1.2
  • Loading branch information
Shengwen YU authored May 13, 2024
2 parents e4cb163 + ed764cb commit 7dfc719
Show file tree
Hide file tree
Showing 13 changed files with 822 additions and 446 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,6 @@ junit-report.xml
coverage.xml
profile.cov
config.yaml

### Goland ###
.idea
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -45,7 +45,7 @@ When run the scanner, we can privide a yaml file to customize the behavior of th
Here is a example yaml file

```yaml
--
---
db:
total: 10000 # The total count of the vulnerabilities in db
scanner:
Expand Down
553 changes: 298 additions & 255 deletions api/api.gen.go

Large diffs are not rendered by default.

261 changes: 213 additions & 48 deletions api/openapi.yaml

Large diffs are not rendered by default.

62 changes: 34 additions & 28 deletions go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -5,65 +5,71 @@ go 1.20
require (
github.com/brianvoe/gofakeit/v6 v6.4.1
github.com/containerd/containerd v1.3.2
github.com/deepmap/oapi-codegen v1.6.1
github.com/deislabs/oras v0.8.1
github.com/getkin/kin-openapi v0.53.0
github.com/google/uuid v1.2.0
github.com/getkin/kin-openapi v0.122.0
github.com/google/uuid v1.5.0
github.com/heetch/confita v0.10.0
github.com/labstack/echo/v4 v4.2.1
github.com/labstack/echo/v4 v4.11.4
github.com/mborders/artifex v0.4.0
github.com/mroth/weightedrand v0.4.1
github.com/pkg/errors v0.9.1
github.com/sirupsen/logrus v1.6.0
github.com/oapi-codegen/echo-middleware v1.0.1
github.com/oapi-codegen/runtime v1.1.1
github.com/sirupsen/logrus v1.8.1
)

require (
github.com/BurntSushi/toml v0.3.1 // indirect
github.com/BurntSushi/toml v1.3.2 // indirect
github.com/Microsoft/go-winio v0.4.15-0.20190919025122-fc70bd9a86b5 // indirect
github.com/Microsoft/hcsshim v0.8.7 // indirect
github.com/apapsch/go-jsonmerge/v2 v2.0.0 // indirect
github.com/bugsnag/bugsnag-go v1.5.2 // indirect
github.com/bugsnag/panicwrap v1.2.0 // indirect
github.com/cespare/xxhash/v2 v2.2.0 // indirect
github.com/containerd/cgroups v0.0.0-20190919134610-bf292b21730f // indirect
github.com/dgrijalva/jwt-go v3.2.0+incompatible // indirect
github.com/deepmap/oapi-codegen/v2 v2.1.0 // indirect
github.com/docker/distribution v2.7.1+incompatible // indirect
github.com/docker/go-metrics v0.0.0-20181218153428-b84716841b82 // indirect
github.com/docker/libtrust v0.0.0-20160708172513-aabc10ec26b7 // indirect
github.com/ghodss/yaml v1.0.0 // indirect
github.com/go-openapi/jsonpointer v0.19.5 // indirect
github.com/go-openapi/swag v0.19.13 // indirect
github.com/go-openapi/jsonpointer v0.19.6 // indirect
github.com/go-openapi/swag v0.22.4 // indirect
github.com/gofrs/uuid v3.2.0+incompatible // indirect
github.com/gogo/protobuf v1.3.1 // indirect
github.com/golang-jwt/jwt v3.2.2+incompatible // indirect
github.com/golang/groupcache v0.0.0-20200121045136-8c9f03a8e57e // indirect
github.com/golang/protobuf v1.4.2 // indirect
github.com/google/go-cmp v0.5.2 // indirect
github.com/golang/protobuf v1.5.2 // indirect
github.com/gorilla/handlers v1.4.2 // indirect
github.com/gorilla/mux v1.8.0 // indirect
github.com/invopop/yaml v0.2.0 // indirect
github.com/josharian/intern v1.0.0 // indirect
github.com/kardianos/osext v0.0.0-20190222173326-2bc1f35cddc0 // indirect
github.com/konsorten/go-windows-terminal-sequences v1.0.3 // indirect
github.com/labstack/gommon v0.3.0 // indirect
github.com/mailru/easyjson v0.7.6 // indirect
github.com/mattn/go-colorable v0.1.8 // indirect
github.com/mattn/go-isatty v0.0.12 // indirect
github.com/labstack/gommon v0.4.2 // indirect
github.com/mailru/easyjson v0.7.7 // indirect
github.com/mattn/go-colorable v0.1.13 // indirect
github.com/mattn/go-isatty v0.0.20 // indirect
github.com/mohae/deepcopy v0.0.0-20170929034955-c48cc78d4826 // indirect
github.com/opencontainers/go-digest v1.0.0 // indirect
github.com/opencontainers/image-spec v1.0.1 // indirect
github.com/opencontainers/runc v0.1.1 // indirect
github.com/perimeterx/marshmallow v1.1.5 // indirect
github.com/pkg/errors v0.9.1 // indirect
github.com/prometheus/client_golang v1.7.1 // indirect
github.com/robfig/cron/v3 v3.0.1 // indirect
github.com/spf13/pflag v1.0.5 // indirect
github.com/valyala/bytebufferpool v1.0.0 // indirect
github.com/valyala/fasttemplate v1.2.1 // indirect
github.com/valyala/fasttemplate v1.2.2 // indirect
go.opencensus.io v0.22.3 // indirect
golang.org/x/crypto v0.0.0-20201221181555-eec23a3978ad // indirect
golang.org/x/net v0.0.0-20210119194325-5f4716e94777 // indirect
golang.org/x/sync v0.0.0-20190911185100-cd5d95a43a6e // indirect
golang.org/x/sys v0.0.0-20210124154548-22da62e12c0c // indirect
golang.org/x/text v0.3.6 // indirect
golang.org/x/time v0.0.0-20210220033141-f8bda1e9f3ba // indirect
golang.org/x/xerrors v0.0.0-20200804184101-5ec99f83aff1 // indirect
golang.org/x/crypto v0.17.0 // indirect
golang.org/x/mod v0.12.0 // indirect
golang.org/x/net v0.19.0 // indirect
golang.org/x/sync v0.3.0 // indirect
golang.org/x/sys v0.15.0 // indirect
golang.org/x/text v0.14.0 // indirect
golang.org/x/time v0.5.0 // indirect
golang.org/x/tools v0.12.0 // indirect
google.golang.org/genproto v0.0.0-20200903010400-9bfcb5116336 // indirect
google.golang.org/grpc v1.31.1 // indirect
google.golang.org/protobuf v1.24.0 // indirect
gopkg.in/check.v1 v1.0.0-20201130134442-10cb98267c6c // indirect
google.golang.org/protobuf v1.31.0 // indirect
gopkg.in/yaml.v2 v2.4.0 // indirect
gopkg.in/yaml.v3 v3.0.1 // indirect
rsc.io/letsencrypt v0.0.3 // indirect
)
Loading

0 comments on commit 7dfc719

Please sign in to comment.