mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 15:50:15 -08:00
* detector/alpine: Add LayerID to detect vulns Signed-off-by: Simarpreet Singh <simar@linux.com> * amazon: Add LayerID to DetectedVulns Signed-off-by: Simarpreet Singh <simar@linux.com> * debian: Add LayerID to DetectVulns + tests Signed-off-by: Simarpreet Singh <simar@linux.com> * oracle: Add LayerID to DetectVulns + tests Signed-off-by: Simarpreet Singh <simar@linux.com> * photon: Add LayerID to DetectVulns + tests Signed-off-by: Simarpreet Singh <simar@linux.com> * redhat: Add LayerID to DetectVulns + tests Signed-off-by: Simarpreet Singh <simar@linux.com> * suse: Add LayerID to DetectVulns + tests Signed-off-by: Simarpreet Singh <simar@linux.com> * ubuntu: Add LayerID to DetectVulns + tests Signed-off-by: Simarpreet Singh <simar@linux.com> * integration: Fix integration tests to include LayerID Signed-off-by: Simarpreet Singh <simar@linux.com> * fix(rpc): add layer_id * fix(rpc): insert layer_id to the struct * fix(extractor): add cleanup function * fix(library): add layer ID to detected vulnerabilities * test: update mocks * chore(mod): point to the feature branch of fanal * mod: Point to fanal/master Signed-off-by: Simarpreet Singh <simar@linux.com> * scan_test: Include LayerID as part of the assertion Signed-off-by: Simarpreet Singh <simar@linux.com> * docker_engine_test.go: Update an error message to conform with fanal/master. Signed-off-by: Simarpreet Singh <simar@linux.com> Co-authored-by: Teppei Fukuda <knqyf263@gmail.com>
62 lines
1.2 KiB
Protocol Buffer
62 lines
1.2 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package trivy.common;
|
|
option go_package = "common";
|
|
|
|
message OS {
|
|
string family = 1;
|
|
string name = 2;
|
|
}
|
|
|
|
message PackageInfo {
|
|
string file_path = 1;
|
|
repeated Package packages = 2;
|
|
}
|
|
|
|
message Application {
|
|
string type = 1;
|
|
string file_path = 2;
|
|
repeated Library libraries = 3;
|
|
}
|
|
|
|
message Package {
|
|
// binary package
|
|
// e.g. bind-utils
|
|
string name = 1;
|
|
string version = 2;
|
|
string release = 3;
|
|
int32 epoch = 4;
|
|
string arch = 5;
|
|
// src package containing some binary packages
|
|
// e.g. bind
|
|
string src_name = 6;
|
|
string src_version = 7;
|
|
string src_release = 8;
|
|
int32 src_epoch = 9;
|
|
}
|
|
|
|
message Library {
|
|
string name = 1;
|
|
string version = 2;
|
|
}
|
|
|
|
message Vulnerability {
|
|
string vulnerability_id = 1;
|
|
string pkg_name = 2;
|
|
string installed_version = 3;
|
|
string fixed_version = 4;
|
|
string title = 5;
|
|
string description = 6;
|
|
Severity severity = 7;
|
|
repeated string references = 8;
|
|
string layer_id = 9;
|
|
}
|
|
|
|
enum Severity {
|
|
UNKNOWN = 0;
|
|
LOW = 1;
|
|
MEDIUM = 2;
|
|
HIGH = 3;
|
|
CRITICAL = 4;
|
|
}
|