mirror of
https://github.com/aquasecurity/trivy.git
synced 2025-12-12 15:50:15 -08:00
38 lines
1.1 KiB
Protocol Buffer
38 lines
1.1 KiB
Protocol Buffer
syntax = "proto3";
|
|
|
|
package trivy.scanner.v1;
|
|
option go_package = "github.com/aquasecurity/trivy/rpc/scanner;scanner";
|
|
|
|
import "github.com/aquasecurity/trivy/rpc/common/service.proto";
|
|
|
|
service Scanner {
|
|
rpc Scan(ScanRequest) returns (ScanResponse);
|
|
}
|
|
|
|
message ScanRequest {
|
|
string target = 1; // image name or tar file path
|
|
string artifact_id = 2;
|
|
repeated string blob_ids = 3;
|
|
ScanOptions options = 4;
|
|
}
|
|
|
|
message ScanOptions {
|
|
repeated string vuln_type = 1;
|
|
repeated string security_checks = 2;
|
|
bool list_all_packages = 3;
|
|
}
|
|
|
|
message ScanResponse {
|
|
common.OS os = 1;
|
|
repeated Result results = 3;
|
|
}
|
|
|
|
// Result is the same as github.com/aquasecurity/trivy/pkg/report.Result
|
|
message Result {
|
|
string target = 1;
|
|
repeated common.Vulnerability vulnerabilities = 2;
|
|
repeated common.DetectedMisconfiguration misconfigurations = 4;
|
|
string class = 6;
|
|
string type = 3;
|
|
repeated common.Package packages = 5;
|
|
} |