Skip to content

Commit

Permalink
Set extended field for vulnerability, secret, malware #1343 (#1697)
Browse files Browse the repository at this point in the history
This will fetch the rule nodes additionally from neo4j
  • Loading branch information
ramanan-ravi authored Oct 30, 2023
1 parent 1a128f3 commit 64fcefe
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 5 deletions.
6 changes: 3 additions & 3 deletions deepfence_server/model/scans.go
Original file line number Diff line number Diff line change
Expand Up @@ -359,7 +359,7 @@ func (Vulnerability) NodeType() string {
}

func (Vulnerability) ExtendedField() string {
return ""
return "rule_id"
}

func (v Vulnerability) GetCategory() string {
Expand Down Expand Up @@ -433,7 +433,7 @@ func (Malware) NodeType() string {
}

func (Malware) ExtendedField() string {
return ""
return "rule_id"
}

func (v Malware) GetCategory() string {
Expand Down Expand Up @@ -501,7 +501,7 @@ func (Compliance) NodeType() string {
}

func (Compliance) ExtendedField() string {
return ""
return "rule_id"
}

func (v Compliance) GetCategory() string {
Expand Down
4 changes: 2 additions & 2 deletions deepfence_worker/go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ require (
github.com/deepfence/ThreatMapper/deepfence_utils v0.0.0-00010101000000-000000000000
github.com/deepfence/YaraHunter v0.0.0-00010101000000-000000000000
github.com/deepfence/agent-plugins-grpc v1.1.0
github.com/deepfence/golang_deepfence_sdk/utils v0.0.0-20231004120553-da6d7332a0e5
github.com/deepfence/golang_deepfence_sdk/utils v0.0.0-20231030062708-5506162b00b7
github.com/deepfence/package-scanner v0.0.0-00010101000000-000000000000
github.com/hibiken/asynq v0.24.1
github.com/kelseyhightower/envconfig v1.4.0
Expand Down Expand Up @@ -90,7 +90,7 @@ require (
github.com/containerd/typeurl/v2 v2.1.1 // indirect
github.com/davecgh/go-spew v1.1.1 // indirect
github.com/decred/dcrd/dcrec/secp256k1/v4 v4.2.0 // indirect
github.com/deepfence/golang_deepfence_sdk/client v0.0.0-20231004120553-da6d7332a0e5 // indirect
github.com/deepfence/golang_deepfence_sdk/client v0.0.0-20231030062708-5506162b00b7 // indirect
github.com/deepfence/vessel v0.12.0 // indirect
github.com/dgryski/go-rendezvous v0.0.0-20200823014737-9f7001d12a5f // indirect
github.com/distribution/reference v0.5.0 // indirect
Expand Down

0 comments on commit 64fcefe

Please sign in to comment.