@google-cloud/containeranalysis 6.4.0 → 6.6.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/build/protos/grafeas/v1/common.proto +2 -0
- package/build/protos/grafeas/v1/discovery.proto +3 -0
- package/build/protos/grafeas/v1/vulnerability.proto +4 -1
- package/build/protos/protos.d.ts +18 -0
- package/build/protos/protos.js +79 -0
- package/build/protos/protos.json +12 -0
- package/package.json +1 -1
|
@@ -144,6 +144,8 @@ message BaseImage {
|
|
|
144
144
|
string repository = 2;
|
|
145
145
|
// The number of layers that the base image is composed of.
|
|
146
146
|
int32 layer_count = 3;
|
|
147
|
+
// The registry in which the base image is from.
|
|
148
|
+
string registry = 4;
|
|
147
149
|
}
|
|
148
150
|
|
|
149
151
|
// Details about the layer a package was found in.
|
|
@@ -156,4 +156,7 @@ message DiscoveryOccurrence {
|
|
|
156
156
|
|
|
157
157
|
// Files that make up the resource described by the occurrence.
|
|
158
158
|
repeated File files = 11;
|
|
159
|
+
|
|
160
|
+
// The last time vulnerability scan results changed.
|
|
161
|
+
google.protobuf.Timestamp last_vulnerability_update_time = 12;
|
|
159
162
|
}
|
|
@@ -157,7 +157,10 @@ message VulnerabilityNote {
|
|
|
157
157
|
// The full description of the v2 CVSS for this vulnerability.
|
|
158
158
|
CVSS cvss_v2 = 8;
|
|
159
159
|
|
|
160
|
-
//
|
|
160
|
+
// The time this advisory was published by the source.
|
|
161
|
+
google.protobuf.Timestamp advisory_publish_time = 9;
|
|
162
|
+
|
|
163
|
+
// Next free ID is 10.
|
|
161
164
|
}
|
|
162
165
|
|
|
163
166
|
// An occurrence of a severity vulnerability on a resource.
|
package/build/protos/protos.d.ts
CHANGED
|
@@ -983,6 +983,9 @@ export namespace grafeas {
|
|
|
983
983
|
|
|
984
984
|
/** BaseImage layerCount */
|
|
985
985
|
layerCount?: (number|null);
|
|
986
|
+
|
|
987
|
+
/** BaseImage registry */
|
|
988
|
+
registry?: (string|null);
|
|
986
989
|
}
|
|
987
990
|
|
|
988
991
|
/** Represents a BaseImage. */
|
|
@@ -1003,6 +1006,9 @@ export namespace grafeas {
|
|
|
1003
1006
|
/** BaseImage layerCount. */
|
|
1004
1007
|
public layerCount: number;
|
|
1005
1008
|
|
|
1009
|
+
/** BaseImage registry. */
|
|
1010
|
+
public registry: string;
|
|
1011
|
+
|
|
1006
1012
|
/**
|
|
1007
1013
|
* Creates a new BaseImage instance using the specified properties.
|
|
1008
1014
|
* @param [properties] Properties to set
|
|
@@ -7546,6 +7552,9 @@ export namespace grafeas {
|
|
|
7546
7552
|
|
|
7547
7553
|
/** DiscoveryOccurrence files */
|
|
7548
7554
|
files?: (grafeas.v1.DiscoveryOccurrence.IFile[]|null);
|
|
7555
|
+
|
|
7556
|
+
/** DiscoveryOccurrence lastVulnerabilityUpdateTime */
|
|
7557
|
+
lastVulnerabilityUpdateTime?: (google.protobuf.ITimestamp|null);
|
|
7549
7558
|
}
|
|
7550
7559
|
|
|
7551
7560
|
/** Represents a DiscoveryOccurrence. */
|
|
@@ -7590,6 +7599,9 @@ export namespace grafeas {
|
|
|
7590
7599
|
/** DiscoveryOccurrence files. */
|
|
7591
7600
|
public files: grafeas.v1.DiscoveryOccurrence.IFile[];
|
|
7592
7601
|
|
|
7602
|
+
/** DiscoveryOccurrence lastVulnerabilityUpdateTime. */
|
|
7603
|
+
public lastVulnerabilityUpdateTime?: (google.protobuf.ITimestamp|null);
|
|
7604
|
+
|
|
7593
7605
|
/**
|
|
7594
7606
|
* Creates a new DiscoveryOccurrence instance using the specified properties.
|
|
7595
7607
|
* @param [properties] Properties to set
|
|
@@ -14642,6 +14654,9 @@ export namespace grafeas {
|
|
|
14642
14654
|
|
|
14643
14655
|
/** VulnerabilityNote cvssV2 */
|
|
14644
14656
|
cvssV2?: (grafeas.v1.ICVSS|null);
|
|
14657
|
+
|
|
14658
|
+
/** VulnerabilityNote advisoryPublishTime */
|
|
14659
|
+
advisoryPublishTime?: (google.protobuf.ITimestamp|null);
|
|
14645
14660
|
}
|
|
14646
14661
|
|
|
14647
14662
|
/** Represents a VulnerabilityNote. */
|
|
@@ -14677,6 +14692,9 @@ export namespace grafeas {
|
|
|
14677
14692
|
/** VulnerabilityNote cvssV2. */
|
|
14678
14693
|
public cvssV2?: (grafeas.v1.ICVSS|null);
|
|
14679
14694
|
|
|
14695
|
+
/** VulnerabilityNote advisoryPublishTime. */
|
|
14696
|
+
public advisoryPublishTime?: (google.protobuf.ITimestamp|null);
|
|
14697
|
+
|
|
14680
14698
|
/**
|
|
14681
14699
|
* Creates a new VulnerabilityNote instance using the specified properties.
|
|
14682
14700
|
* @param [properties] Properties to set
|
package/build/protos/protos.js
CHANGED
|
@@ -2263,6 +2263,7 @@
|
|
|
2263
2263
|
* @property {string|null} [name] BaseImage name
|
|
2264
2264
|
* @property {string|null} [repository] BaseImage repository
|
|
2265
2265
|
* @property {number|null} [layerCount] BaseImage layerCount
|
|
2266
|
+
* @property {string|null} [registry] BaseImage registry
|
|
2266
2267
|
*/
|
|
2267
2268
|
|
|
2268
2269
|
/**
|
|
@@ -2304,6 +2305,14 @@
|
|
|
2304
2305
|
*/
|
|
2305
2306
|
BaseImage.prototype.layerCount = 0;
|
|
2306
2307
|
|
|
2308
|
+
/**
|
|
2309
|
+
* BaseImage registry.
|
|
2310
|
+
* @member {string} registry
|
|
2311
|
+
* @memberof grafeas.v1.BaseImage
|
|
2312
|
+
* @instance
|
|
2313
|
+
*/
|
|
2314
|
+
BaseImage.prototype.registry = "";
|
|
2315
|
+
|
|
2307
2316
|
/**
|
|
2308
2317
|
* Creates a new BaseImage instance using the specified properties.
|
|
2309
2318
|
* @function create
|
|
@@ -2334,6 +2343,8 @@
|
|
|
2334
2343
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.repository);
|
|
2335
2344
|
if (message.layerCount != null && Object.hasOwnProperty.call(message, "layerCount"))
|
|
2336
2345
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.layerCount);
|
|
2346
|
+
if (message.registry != null && Object.hasOwnProperty.call(message, "registry"))
|
|
2347
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.registry);
|
|
2337
2348
|
return writer;
|
|
2338
2349
|
};
|
|
2339
2350
|
|
|
@@ -2382,6 +2393,10 @@
|
|
|
2382
2393
|
message.layerCount = reader.int32();
|
|
2383
2394
|
break;
|
|
2384
2395
|
}
|
|
2396
|
+
case 4: {
|
|
2397
|
+
message.registry = reader.string();
|
|
2398
|
+
break;
|
|
2399
|
+
}
|
|
2385
2400
|
default:
|
|
2386
2401
|
reader.skipType(tag & 7);
|
|
2387
2402
|
break;
|
|
@@ -2426,6 +2441,9 @@
|
|
|
2426
2441
|
if (message.layerCount != null && message.hasOwnProperty("layerCount"))
|
|
2427
2442
|
if (!$util.isInteger(message.layerCount))
|
|
2428
2443
|
return "layerCount: integer expected";
|
|
2444
|
+
if (message.registry != null && message.hasOwnProperty("registry"))
|
|
2445
|
+
if (!$util.isString(message.registry))
|
|
2446
|
+
return "registry: string expected";
|
|
2429
2447
|
return null;
|
|
2430
2448
|
};
|
|
2431
2449
|
|
|
@@ -2447,6 +2465,8 @@
|
|
|
2447
2465
|
message.repository = String(object.repository);
|
|
2448
2466
|
if (object.layerCount != null)
|
|
2449
2467
|
message.layerCount = object.layerCount | 0;
|
|
2468
|
+
if (object.registry != null)
|
|
2469
|
+
message.registry = String(object.registry);
|
|
2450
2470
|
return message;
|
|
2451
2471
|
};
|
|
2452
2472
|
|
|
@@ -2467,6 +2487,7 @@
|
|
|
2467
2487
|
object.name = "";
|
|
2468
2488
|
object.repository = "";
|
|
2469
2489
|
object.layerCount = 0;
|
|
2490
|
+
object.registry = "";
|
|
2470
2491
|
}
|
|
2471
2492
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
2472
2493
|
object.name = message.name;
|
|
@@ -2474,6 +2495,8 @@
|
|
|
2474
2495
|
object.repository = message.repository;
|
|
2475
2496
|
if (message.layerCount != null && message.hasOwnProperty("layerCount"))
|
|
2476
2497
|
object.layerCount = message.layerCount;
|
|
2498
|
+
if (message.registry != null && message.hasOwnProperty("registry"))
|
|
2499
|
+
object.registry = message.registry;
|
|
2477
2500
|
return object;
|
|
2478
2501
|
};
|
|
2479
2502
|
|
|
@@ -19713,6 +19736,7 @@
|
|
|
19713
19736
|
* @property {grafeas.v1.DiscoveryOccurrence.ISBOMStatus|null} [sbomStatus] DiscoveryOccurrence sbomStatus
|
|
19714
19737
|
* @property {grafeas.v1.DiscoveryOccurrence.IVulnerabilityAttestation|null} [vulnerabilityAttestation] DiscoveryOccurrence vulnerabilityAttestation
|
|
19715
19738
|
* @property {Array.<grafeas.v1.DiscoveryOccurrence.IFile>|null} [files] DiscoveryOccurrence files
|
|
19739
|
+
* @property {google.protobuf.ITimestamp|null} [lastVulnerabilityUpdateTime] DiscoveryOccurrence lastVulnerabilityUpdateTime
|
|
19716
19740
|
*/
|
|
19717
19741
|
|
|
19718
19742
|
/**
|
|
@@ -19820,6 +19844,14 @@
|
|
|
19820
19844
|
*/
|
|
19821
19845
|
DiscoveryOccurrence.prototype.files = $util.emptyArray;
|
|
19822
19846
|
|
|
19847
|
+
/**
|
|
19848
|
+
* DiscoveryOccurrence lastVulnerabilityUpdateTime.
|
|
19849
|
+
* @member {google.protobuf.ITimestamp|null|undefined} lastVulnerabilityUpdateTime
|
|
19850
|
+
* @memberof grafeas.v1.DiscoveryOccurrence
|
|
19851
|
+
* @instance
|
|
19852
|
+
*/
|
|
19853
|
+
DiscoveryOccurrence.prototype.lastVulnerabilityUpdateTime = null;
|
|
19854
|
+
|
|
19823
19855
|
/**
|
|
19824
19856
|
* Creates a new DiscoveryOccurrence instance using the specified properties.
|
|
19825
19857
|
* @function create
|
|
@@ -19868,6 +19900,8 @@
|
|
|
19868
19900
|
if (message.files != null && message.files.length)
|
|
19869
19901
|
for (var i = 0; i < message.files.length; ++i)
|
|
19870
19902
|
$root.grafeas.v1.DiscoveryOccurrence.File.encode(message.files[i], writer.uint32(/* id 11, wireType 2 =*/90).fork()).ldelim();
|
|
19903
|
+
if (message.lastVulnerabilityUpdateTime != null && Object.hasOwnProperty.call(message, "lastVulnerabilityUpdateTime"))
|
|
19904
|
+
$root.google.protobuf.Timestamp.encode(message.lastVulnerabilityUpdateTime, writer.uint32(/* id 12, wireType 2 =*/98).fork()).ldelim();
|
|
19871
19905
|
return writer;
|
|
19872
19906
|
};
|
|
19873
19907
|
|
|
@@ -19952,6 +19986,10 @@
|
|
|
19952
19986
|
message.files.push($root.grafeas.v1.DiscoveryOccurrence.File.decode(reader, reader.uint32()));
|
|
19953
19987
|
break;
|
|
19954
19988
|
}
|
|
19989
|
+
case 12: {
|
|
19990
|
+
message.lastVulnerabilityUpdateTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
19991
|
+
break;
|
|
19992
|
+
}
|
|
19955
19993
|
default:
|
|
19956
19994
|
reader.skipType(tag & 7);
|
|
19957
19995
|
break;
|
|
@@ -20060,6 +20098,11 @@
|
|
|
20060
20098
|
return "files." + error;
|
|
20061
20099
|
}
|
|
20062
20100
|
}
|
|
20101
|
+
if (message.lastVulnerabilityUpdateTime != null && message.hasOwnProperty("lastVulnerabilityUpdateTime")) {
|
|
20102
|
+
var error = $root.google.protobuf.Timestamp.verify(message.lastVulnerabilityUpdateTime);
|
|
20103
|
+
if (error)
|
|
20104
|
+
return "lastVulnerabilityUpdateTime." + error;
|
|
20105
|
+
}
|
|
20063
20106
|
return null;
|
|
20064
20107
|
};
|
|
20065
20108
|
|
|
@@ -20183,6 +20226,11 @@
|
|
|
20183
20226
|
message.files[i] = $root.grafeas.v1.DiscoveryOccurrence.File.fromObject(object.files[i]);
|
|
20184
20227
|
}
|
|
20185
20228
|
}
|
|
20229
|
+
if (object.lastVulnerabilityUpdateTime != null) {
|
|
20230
|
+
if (typeof object.lastVulnerabilityUpdateTime !== "object")
|
|
20231
|
+
throw TypeError(".grafeas.v1.DiscoveryOccurrence.lastVulnerabilityUpdateTime: object expected");
|
|
20232
|
+
message.lastVulnerabilityUpdateTime = $root.google.protobuf.Timestamp.fromObject(object.lastVulnerabilityUpdateTime);
|
|
20233
|
+
}
|
|
20186
20234
|
return message;
|
|
20187
20235
|
};
|
|
20188
20236
|
|
|
@@ -20213,6 +20261,7 @@
|
|
|
20213
20261
|
object.analysisCompleted = null;
|
|
20214
20262
|
object.sbomStatus = null;
|
|
20215
20263
|
object.vulnerabilityAttestation = null;
|
|
20264
|
+
object.lastVulnerabilityUpdateTime = null;
|
|
20216
20265
|
}
|
|
20217
20266
|
if (message.continuousAnalysis != null && message.hasOwnProperty("continuousAnalysis"))
|
|
20218
20267
|
object.continuousAnalysis = options.enums === String ? $root.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis[message.continuousAnalysis] === undefined ? message.continuousAnalysis : $root.grafeas.v1.DiscoveryOccurrence.ContinuousAnalysis[message.continuousAnalysis] : message.continuousAnalysis;
|
|
@@ -20242,6 +20291,8 @@
|
|
|
20242
20291
|
for (var j = 0; j < message.files.length; ++j)
|
|
20243
20292
|
object.files[j] = $root.grafeas.v1.DiscoveryOccurrence.File.toObject(message.files[j], options);
|
|
20244
20293
|
}
|
|
20294
|
+
if (message.lastVulnerabilityUpdateTime != null && message.hasOwnProperty("lastVulnerabilityUpdateTime"))
|
|
20295
|
+
object.lastVulnerabilityUpdateTime = $root.google.protobuf.Timestamp.toObject(message.lastVulnerabilityUpdateTime, options);
|
|
20245
20296
|
return object;
|
|
20246
20297
|
};
|
|
20247
20298
|
|
|
@@ -38189,6 +38240,7 @@
|
|
|
38189
38240
|
* @property {google.protobuf.ITimestamp|null} [sourceUpdateTime] VulnerabilityNote sourceUpdateTime
|
|
38190
38241
|
* @property {grafeas.v1.CVSSVersion|null} [cvssVersion] VulnerabilityNote cvssVersion
|
|
38191
38242
|
* @property {grafeas.v1.ICVSS|null} [cvssV2] VulnerabilityNote cvssV2
|
|
38243
|
+
* @property {google.protobuf.ITimestamp|null} [advisoryPublishTime] VulnerabilityNote advisoryPublishTime
|
|
38192
38244
|
*/
|
|
38193
38245
|
|
|
38194
38246
|
/**
|
|
@@ -38272,6 +38324,14 @@
|
|
|
38272
38324
|
*/
|
|
38273
38325
|
VulnerabilityNote.prototype.cvssV2 = null;
|
|
38274
38326
|
|
|
38327
|
+
/**
|
|
38328
|
+
* VulnerabilityNote advisoryPublishTime.
|
|
38329
|
+
* @member {google.protobuf.ITimestamp|null|undefined} advisoryPublishTime
|
|
38330
|
+
* @memberof grafeas.v1.VulnerabilityNote
|
|
38331
|
+
* @instance
|
|
38332
|
+
*/
|
|
38333
|
+
VulnerabilityNote.prototype.advisoryPublishTime = null;
|
|
38334
|
+
|
|
38275
38335
|
/**
|
|
38276
38336
|
* Creates a new VulnerabilityNote instance using the specified properties.
|
|
38277
38337
|
* @function create
|
|
@@ -38314,6 +38374,8 @@
|
|
|
38314
38374
|
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.cvssVersion);
|
|
38315
38375
|
if (message.cvssV2 != null && Object.hasOwnProperty.call(message, "cvssV2"))
|
|
38316
38376
|
$root.grafeas.v1.CVSS.encode(message.cvssV2, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
38377
|
+
if (message.advisoryPublishTime != null && Object.hasOwnProperty.call(message, "advisoryPublishTime"))
|
|
38378
|
+
$root.google.protobuf.Timestamp.encode(message.advisoryPublishTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
38317
38379
|
return writer;
|
|
38318
38380
|
};
|
|
38319
38381
|
|
|
@@ -38386,6 +38448,10 @@
|
|
|
38386
38448
|
message.cvssV2 = $root.grafeas.v1.CVSS.decode(reader, reader.uint32());
|
|
38387
38449
|
break;
|
|
38388
38450
|
}
|
|
38451
|
+
case 9: {
|
|
38452
|
+
message.advisoryPublishTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
38453
|
+
break;
|
|
38454
|
+
}
|
|
38389
38455
|
default:
|
|
38390
38456
|
reader.skipType(tag & 7);
|
|
38391
38457
|
break;
|
|
@@ -38478,6 +38544,11 @@
|
|
|
38478
38544
|
if (error)
|
|
38479
38545
|
return "cvssV2." + error;
|
|
38480
38546
|
}
|
|
38547
|
+
if (message.advisoryPublishTime != null && message.hasOwnProperty("advisoryPublishTime")) {
|
|
38548
|
+
var error = $root.google.protobuf.Timestamp.verify(message.advisoryPublishTime);
|
|
38549
|
+
if (error)
|
|
38550
|
+
return "advisoryPublishTime." + error;
|
|
38551
|
+
}
|
|
38481
38552
|
return null;
|
|
38482
38553
|
};
|
|
38483
38554
|
|
|
@@ -38582,6 +38653,11 @@
|
|
|
38582
38653
|
throw TypeError(".grafeas.v1.VulnerabilityNote.cvssV2: object expected");
|
|
38583
38654
|
message.cvssV2 = $root.grafeas.v1.CVSS.fromObject(object.cvssV2);
|
|
38584
38655
|
}
|
|
38656
|
+
if (object.advisoryPublishTime != null) {
|
|
38657
|
+
if (typeof object.advisoryPublishTime !== "object")
|
|
38658
|
+
throw TypeError(".grafeas.v1.VulnerabilityNote.advisoryPublishTime: object expected");
|
|
38659
|
+
message.advisoryPublishTime = $root.google.protobuf.Timestamp.fromObject(object.advisoryPublishTime);
|
|
38660
|
+
}
|
|
38585
38661
|
return message;
|
|
38586
38662
|
};
|
|
38587
38663
|
|
|
@@ -38609,6 +38685,7 @@
|
|
|
38609
38685
|
object.sourceUpdateTime = null;
|
|
38610
38686
|
object.cvssVersion = options.enums === String ? "CVSS_VERSION_UNSPECIFIED" : 0;
|
|
38611
38687
|
object.cvssV2 = null;
|
|
38688
|
+
object.advisoryPublishTime = null;
|
|
38612
38689
|
}
|
|
38613
38690
|
if (message.cvssScore != null && message.hasOwnProperty("cvssScore"))
|
|
38614
38691
|
object.cvssScore = options.json && !isFinite(message.cvssScore) ? String(message.cvssScore) : message.cvssScore;
|
|
@@ -38632,6 +38709,8 @@
|
|
|
38632
38709
|
object.cvssVersion = options.enums === String ? $root.grafeas.v1.CVSSVersion[message.cvssVersion] === undefined ? message.cvssVersion : $root.grafeas.v1.CVSSVersion[message.cvssVersion] : message.cvssVersion;
|
|
38633
38710
|
if (message.cvssV2 != null && message.hasOwnProperty("cvssV2"))
|
|
38634
38711
|
object.cvssV2 = $root.grafeas.v1.CVSS.toObject(message.cvssV2, options);
|
|
38712
|
+
if (message.advisoryPublishTime != null && message.hasOwnProperty("advisoryPublishTime"))
|
|
38713
|
+
object.advisoryPublishTime = $root.google.protobuf.Timestamp.toObject(message.advisoryPublishTime, options);
|
|
38635
38714
|
return object;
|
|
38636
38715
|
};
|
|
38637
38716
|
|
package/build/protos/protos.json
CHANGED
|
@@ -163,6 +163,10 @@
|
|
|
163
163
|
"layerCount": {
|
|
164
164
|
"type": "int32",
|
|
165
165
|
"id": 3
|
|
166
|
+
},
|
|
167
|
+
"registry": {
|
|
168
|
+
"type": "string",
|
|
169
|
+
"id": 4
|
|
166
170
|
}
|
|
167
171
|
}
|
|
168
172
|
},
|
|
@@ -1507,6 +1511,10 @@
|
|
|
1507
1511
|
"rule": "repeated",
|
|
1508
1512
|
"type": "File",
|
|
1509
1513
|
"id": 11
|
|
1514
|
+
},
|
|
1515
|
+
"lastVulnerabilityUpdateTime": {
|
|
1516
|
+
"type": "google.protobuf.Timestamp",
|
|
1517
|
+
"id": 12
|
|
1510
1518
|
}
|
|
1511
1519
|
},
|
|
1512
1520
|
"nested": {
|
|
@@ -3327,6 +3335,10 @@
|
|
|
3327
3335
|
"cvssV2": {
|
|
3328
3336
|
"type": "CVSS",
|
|
3329
3337
|
"id": 8
|
|
3338
|
+
},
|
|
3339
|
+
"advisoryPublishTime": {
|
|
3340
|
+
"type": "google.protobuf.Timestamp",
|
|
3341
|
+
"id": 9
|
|
3330
3342
|
}
|
|
3331
3343
|
},
|
|
3332
3344
|
"nested": {
|