From dee2827e3fa87efc95441e697766ac28c78b3720 Mon Sep 17 00:00:00 2001 From: Jonas Plum Date: Thu, 31 Mar 2022 21:43:18 +0200 Subject: [PATCH] Add gocap check (#73) --- .github/workflows/ci.yml | 15 +++++ go.cap | 124 +++++++++++++++++++++++++++++++++++++++ 2 files changed, 139 insertions(+) create mode 100644 go.cap diff --git a/.github/workflows/ci.yml b/.github/workflows/ci.yml index b98161b..99524cf 100644 --- a/.github/workflows/ci.yml +++ b/.github/workflows/ci.yml @@ -78,6 +78,21 @@ jobs: - run: go tool cover -func=cover.out - uses: codecov/codecov-action@v2 + gocap: + name: gocap + runs-on: ubuntu-latest + steps: + - uses: actions/setup-go@v3 + with: { go-version: '1.18' } + - uses: actions/checkout@v3 + - run: go mod download + - run: go install github.com/cugu/gocap@main + - run: | + mkdir -p ui/dist/img + touch ui/dist/index.html ui/dist/favicon.ico ui/dist/manifest.json ui/dist/img/fake.png + - run: go list --json ./cmd/catalyst + - run: gocap check ./cmd/catalyst + build-npm: name: Build npm runs-on: ubuntu-latest diff --git a/go.cap b/go.cap new file mode 100644 index 0000000..a671c85 --- /dev/null +++ b/go.cap @@ -0,0 +1,124 @@ +github.com/SecurityBrewery/catalyst/cmd/catalyst (network) + +github.com/RoaringBitmap/roaring (reflect, unsafe) +github.com/SecurityBrewery/catalyst (execute, file, network) +github.com/SecurityBrewery/catalyst/database/busdb (network) +github.com/SecurityBrewery/catalyst/generated/api (network) +github.com/SecurityBrewery/catalyst/generated/caql/parser (reflect) +github.com/SecurityBrewery/catalyst/index (file) +github.com/SecurityBrewery/catalyst/service (network) +github.com/alecthomas/kong (file, reflect, syscall, unsafe) +github.com/antlr/antlr4/runtime/Go/antlr (file, reflect) +github.com/arangodb/go-driver (file, network, reflect) +github.com/arangodb/go-driver/cluster (network) +github.com/arangodb/go-driver/http (file, network, reflect) +github.com/arangodb/go-velocypack (reflect) +github.com/aws/aws-sdk-go/aws (file, network) +github.com/aws/aws-sdk-go/aws/awsutil (reflect) +github.com/aws/aws-sdk-go/aws/client (file) +github.com/aws/aws-sdk-go/aws/corehandlers (file, network) +github.com/aws/aws-sdk-go/aws/credentials (file) +github.com/aws/aws-sdk-go/aws/credentials/processcreds (execute, file) +github.com/aws/aws-sdk-go/aws/credentials/ssocreds (file) +github.com/aws/aws-sdk-go/aws/credentials/stscreds (file) +github.com/aws/aws-sdk-go/aws/csm (network) +github.com/aws/aws-sdk-go/aws/defaults (file, network) +github.com/aws/aws-sdk-go/aws/ec2metadata (file, network) +github.com/aws/aws-sdk-go/aws/request (file, network, reflect) +github.com/aws/aws-sdk-go/aws/session (file, network) +github.com/aws/aws-sdk-go/aws/signer/v4 (file, network) +github.com/aws/aws-sdk-go/internal/ini (file) +github.com/aws/aws-sdk-go/internal/shareddefaults (file) +github.com/aws/aws-sdk-go/private/protocol (file, network, reflect) +github.com/aws/aws-sdk-go/private/protocol/json/jsonutil (reflect) +github.com/aws/aws-sdk-go/private/protocol/jsonrpc (file, network) +github.com/aws/aws-sdk-go/private/protocol/query/queryutil (reflect) +github.com/aws/aws-sdk-go/private/protocol/rest (file, network, reflect) +github.com/aws/aws-sdk-go/private/protocol/restjson (file, network) +github.com/aws/aws-sdk-go/private/protocol/xml/xmlutil (reflect) +github.com/aws/aws-sdk-go/service/s3 (file, network) +github.com/aws/aws-sdk-go/service/s3/s3manager (network) +github.com/blevesearch/bleve/v2 (file, reflect) +github.com/blevesearch/bleve/v2/analysis (file) +github.com/blevesearch/bleve/v2/document (network, reflect) +github.com/blevesearch/bleve/v2/geo (reflect) +github.com/blevesearch/bleve/v2/index/scorch (file, reflect) +github.com/blevesearch/bleve/v2/index/upsidedown (reflect) +github.com/blevesearch/bleve/v2/index/upsidedown/store/boltdb (file) +github.com/blevesearch/bleve/v2/index/upsidedown/store/gtreap (file) +github.com/blevesearch/bleve/v2/mapping (file, network, reflect) +github.com/blevesearch/bleve/v2/search (reflect) +github.com/blevesearch/bleve/v2/search/collector (reflect) +github.com/blevesearch/bleve/v2/search/facet (reflect) +github.com/blevesearch/bleve/v2/search/highlight (reflect) +github.com/blevesearch/bleve/v2/search/query (file, network) +github.com/blevesearch/bleve/v2/search/scorer (reflect) +github.com/blevesearch/bleve/v2/search/searcher (network, reflect) +github.com/blevesearch/bleve/v2/size (reflect) +github.com/blevesearch/bleve_index_api (reflect) +github.com/blevesearch/mmap-go (file, reflect, unsafe) +github.com/blevesearch/vellum (file) +github.com/blevesearch/zapx/v11 (file, reflect, unsafe) +github.com/blevesearch/zapx/v12 (file, reflect, unsafe) +github.com/blevesearch/zapx/v13 (file, reflect, unsafe) +github.com/blevesearch/zapx/v14 (file, reflect, unsafe) +github.com/blevesearch/zapx/v15 (file, reflect, unsafe) +github.com/bmizerany/pat (network) +github.com/coreos/go-oidc/v3/oidc (file, network) +github.com/docker/distribution/registry/api/errcode (network) +github.com/docker/docker/api/types (file, network) +github.com/docker/docker/api/types/mount (file) +github.com/docker/docker/api/types/registry (network) +github.com/docker/docker/api/types/swarm (file) +github.com/docker/docker/client (file, network) +github.com/docker/docker/errdefs (network) +github.com/docker/go-connections/nat (network) +github.com/docker/go-connections/sockets (file, network, syscall) +github.com/docker/go-connections/tlsconfig (file) +github.com/eclipse/paho.mqtt.golang (file, network, reflect) +github.com/go-chi/chi (network) +github.com/go-chi/chi/middleware (file, network) +github.com/go-chi/cors (file, network) +github.com/gobwas/ws (network, reflect, unsafe) +github.com/gobwas/ws/wsutil (file, network) +github.com/gogo/protobuf/proto (reflect, unsafe) +github.com/golang/protobuf/proto (file, reflect) +github.com/golang/protobuf/ptypes/any (reflect) +github.com/golang/protobuf/ptypes/duration (reflect) +github.com/golang/protobuf/ptypes/timestamp (reflect) +github.com/google/uuid (file, network) +github.com/gorilla/websocket (file, network, unsafe) +github.com/imdario/mergo (reflect) +github.com/jmespath/go-jmespath (reflect) +github.com/sirupsen/logrus (file, reflect) +github.com/tus/tusd/pkg/handler (file, network) +github.com/tus/tusd/pkg/s3store (file, network) +github.com/xeipuuv/gojsonpointer (reflect) +github.com/xeipuuv/gojsonschema (file, network, reflect) +go.etcd.io/bbolt (file, reflect, syscall, unsafe) +golang.org/x/net/context/ctxhttp (network) +golang.org/x/net/internal/socks (network) +golang.org/x/net/proxy (file, network) +golang.org/x/oauth2 (network) +golang.org/x/oauth2/internal (file, network) +golang.org/x/sys/internal/unsafeheader (unsafe) +golang.org/x/sys/unix (syscall, unsafe) +google.golang.org/genproto/googleapis/rpc/status (reflect) +google.golang.org/protobuf/internal/descfmt (reflect) +google.golang.org/protobuf/internal/detrand (file) +google.golang.org/protobuf/internal/encoding/tag (reflect) +google.golang.org/protobuf/internal/filedesc (reflect) +google.golang.org/protobuf/internal/filetype (reflect) +google.golang.org/protobuf/internal/impl (file, reflect, unsafe) +google.golang.org/protobuf/internal/strs (unsafe) +google.golang.org/protobuf/proto (reflect) +google.golang.org/protobuf/reflect/protoreflect (unsafe) +google.golang.org/protobuf/reflect/protoregistry (file) +google.golang.org/protobuf/types/descriptorpb (reflect) +google.golang.org/protobuf/types/known/anypb (reflect) +google.golang.org/protobuf/types/known/durationpb (reflect) +google.golang.org/protobuf/types/known/timestamppb (reflect) +gopkg.in/square/go-jose.v2 (reflect) +gopkg.in/square/go-jose.v2/json (reflect) +gopkg.in/yaml.v2 (reflect) +gopkg.in/yaml.v3 (reflect)