@google-cloud/containeranalysis 3.3.0 → 4.1.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/CHANGELOG.md +35 -0
- package/README.md +17 -17
- package/build/protos/google/devtools/containeranalysis/v1/containeranalysis.proto +12 -18
- package/build/protos/grafeas/v1/common.proto +29 -0
- package/build/protos/grafeas/v1/compliance.proto +4 -1
- package/build/protos/grafeas/v1/cvss.proto +74 -0
- package/build/protos/grafeas/v1/discovery.proto +5 -0
- package/build/protos/grafeas/v1/dsse_attestation.proto +1 -1
- package/build/protos/grafeas/v1/intoto_provenance.proto +1 -0
- package/build/protos/grafeas/v1/intoto_statement.proto +3 -0
- package/build/protos/grafeas/v1/package.proto +72 -12
- package/build/protos/grafeas/v1/severity.proto +38 -0
- package/build/protos/grafeas/v1/slsa_provenance.proto +2 -1
- package/build/protos/grafeas/v1/slsa_provenance_zero_two.proto +82 -0
- package/build/protos/grafeas/v1/vulnerability.proto +10 -30
- package/build/protos/protos.d.ts +7815 -6050
- package/build/protos/protos.js +21805 -16953
- package/build/protos/protos.json +1076 -608
- package/build/src/v1/container_analysis_client.d.ts +28 -6
- package/build/src/v1/container_analysis_client.js +2 -3
- package/build/src/v1/container_analysis_client.js.map +1 -1
- package/build/src/v1/index.js +1 -0
- package/build/src/v1/index.js.map +1 -1
- package/build/src/v1beta1/container_analysis_v1_beta1_client.d.ts +37 -7
- package/build/src/v1beta1/container_analysis_v1_beta1_client.js +2 -3
- package/build/src/v1beta1/container_analysis_v1_beta1_client.js.map +1 -1
- package/build/src/v1beta1/grafeas_v1_beta1_client.d.ts +75 -15
- package/build/src/v1beta1/grafeas_v1_beta1_client.js +2 -3
- package/build/src/v1beta1/grafeas_v1_beta1_client.js.map +1 -1
- package/build/src/v1beta1/index.js +1 -0
- package/build/src/v1beta1/index.js.map +1 -1
- package/package.json +8 -8
|
@@ -21,28 +21,13 @@ import "google/protobuf/timestamp.proto";
|
|
|
21
21
|
import "grafeas/v1/common.proto";
|
|
22
22
|
import "grafeas/v1/cvss.proto";
|
|
23
23
|
import "grafeas/v1/package.proto";
|
|
24
|
+
import "grafeas/v1/severity.proto";
|
|
24
25
|
|
|
25
26
|
option go_package = "google.golang.org/genproto/googleapis/grafeas/v1;grafeas";
|
|
26
27
|
option java_multiple_files = true;
|
|
27
28
|
option java_package = "io.grafeas.v1";
|
|
28
29
|
option objc_class_prefix = "GRA";
|
|
29
30
|
|
|
30
|
-
// Note provider assigned severity/impact ranking.
|
|
31
|
-
enum Severity {
|
|
32
|
-
// Unknown.
|
|
33
|
-
SEVERITY_UNSPECIFIED = 0;
|
|
34
|
-
// Minimal severity.
|
|
35
|
-
MINIMAL = 1;
|
|
36
|
-
// Low severity.
|
|
37
|
-
LOW = 2;
|
|
38
|
-
// Medium severity.
|
|
39
|
-
MEDIUM = 3;
|
|
40
|
-
// High severity.
|
|
41
|
-
HIGH = 4;
|
|
42
|
-
// Critical severity.
|
|
43
|
-
CRITICAL = 5;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
31
|
// A security vulnerability that can be found in resources.
|
|
47
32
|
message VulnerabilityNote {
|
|
48
33
|
// The CVSS score of this vulnerability. CVSS score is on a scale of 0 - 10
|
|
@@ -50,7 +35,7 @@ message VulnerabilityNote {
|
|
|
50
35
|
float cvss_score = 1;
|
|
51
36
|
|
|
52
37
|
// The note provider assigned severity of this vulnerability.
|
|
53
|
-
Severity severity = 2;
|
|
38
|
+
grafeas.v1.Severity severity = 2;
|
|
54
39
|
|
|
55
40
|
// Details of all known distros and packages affected by this vulnerability.
|
|
56
41
|
repeated Detail details = 3;
|
|
@@ -172,24 +157,15 @@ message VulnerabilityOccurrence {
|
|
|
172
157
|
string type = 1;
|
|
173
158
|
|
|
174
159
|
// Output only. The note provider assigned severity of this vulnerability.
|
|
175
|
-
Severity severity = 2;
|
|
160
|
+
grafeas.v1.Severity severity = 2;
|
|
176
161
|
|
|
177
162
|
// Output only. The CVSS score of this vulnerability. CVSS score is on a
|
|
178
163
|
// scale of 0 - 10 where 0 indicates low severity and 10 indicates high
|
|
179
164
|
// severity.
|
|
180
165
|
float cvss_score = 3;
|
|
181
166
|
|
|
182
|
-
// The CVSS v3 score for this vulnerability.
|
|
183
|
-
message CVSSV3 {
|
|
184
|
-
// The base score for for this vulnerability according to cvss v3.
|
|
185
|
-
float base_score = 1;
|
|
186
|
-
// The severity rating assigned to this vulnerability by vulnerability
|
|
187
|
-
// provider.
|
|
188
|
-
Severity severity = 2;
|
|
189
|
-
}
|
|
190
|
-
|
|
191
167
|
// The cvss v3 score for the vulnerability.
|
|
192
|
-
|
|
168
|
+
CVSS cvssv3 = 10;
|
|
193
169
|
|
|
194
170
|
// Required. The set of affected locations and their fixes (if available)
|
|
195
171
|
// within the associated resource.
|
|
@@ -231,7 +207,11 @@ message VulnerabilityOccurrence {
|
|
|
231
207
|
// The distro or language system assigned severity for this vulnerability
|
|
232
208
|
// when that is available and note provider assigned severity when it is not
|
|
233
209
|
// available.
|
|
234
|
-
Severity effective_severity = 9
|
|
210
|
+
grafeas.v1.Severity effective_severity = 9
|
|
211
|
+
[(google.api.field_behavior) = OUTPUT_ONLY];
|
|
212
|
+
|
|
213
|
+
// The location at which this package was found.
|
|
214
|
+
repeated FileLocation file_location = 10;
|
|
235
215
|
}
|
|
236
216
|
|
|
237
217
|
// Output only. A one sentence description of this vulnerability.
|
|
@@ -253,7 +233,7 @@ message VulnerabilityOccurrence {
|
|
|
253
233
|
// PackageIssue level. In the case where multiple PackageIssues have differing
|
|
254
234
|
// effective severities, this field should be the highest severity for any of
|
|
255
235
|
// the PackageIssues.
|
|
256
|
-
Severity effective_severity = 8;
|
|
236
|
+
grafeas.v1.Severity effective_severity = 8;
|
|
257
237
|
|
|
258
238
|
// Output only. Whether at least one of the affected packages has a fix
|
|
259
239
|
// available.
|