@google-cloud/containeranalysis 6.5.0 → 6.7.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.
|
@@ -134,6 +134,9 @@ message FileLocation {
|
|
|
134
134
|
// Each package found in a file should have its own layer metadata (that is,
|
|
135
135
|
// information from the origin layer of the package).
|
|
136
136
|
LayerDetails layer_details = 2;
|
|
137
|
+
// Line number in the file where the package was found.
|
|
138
|
+
// Optional field that only applies to source repository scanning.
|
|
139
|
+
int32 line_number = 3;
|
|
137
140
|
}
|
|
138
141
|
|
|
139
142
|
// BaseImage describes a base image of a container image.
|
|
@@ -144,6 +147,8 @@ message BaseImage {
|
|
|
144
147
|
string repository = 2;
|
|
145
148
|
// The number of layers that the base image is composed of.
|
|
146
149
|
int32 layer_count = 3;
|
|
150
|
+
// The registry in which the base image is from.
|
|
151
|
+
string registry = 4;
|
|
147
152
|
}
|
|
148
153
|
|
|
149
154
|
// Details about the layer a package was found in.
|
|
@@ -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
|
@@ -877,6 +877,9 @@ export namespace grafeas {
|
|
|
877
877
|
|
|
878
878
|
/** FileLocation layerDetails */
|
|
879
879
|
layerDetails?: (grafeas.v1.ILayerDetails|null);
|
|
880
|
+
|
|
881
|
+
/** FileLocation lineNumber */
|
|
882
|
+
lineNumber?: (number|null);
|
|
880
883
|
}
|
|
881
884
|
|
|
882
885
|
/** Represents a FileLocation. */
|
|
@@ -894,6 +897,9 @@ export namespace grafeas {
|
|
|
894
897
|
/** FileLocation layerDetails. */
|
|
895
898
|
public layerDetails?: (grafeas.v1.ILayerDetails|null);
|
|
896
899
|
|
|
900
|
+
/** FileLocation lineNumber. */
|
|
901
|
+
public lineNumber: number;
|
|
902
|
+
|
|
897
903
|
/**
|
|
898
904
|
* Creates a new FileLocation instance using the specified properties.
|
|
899
905
|
* @param [properties] Properties to set
|
|
@@ -983,6 +989,9 @@ export namespace grafeas {
|
|
|
983
989
|
|
|
984
990
|
/** BaseImage layerCount */
|
|
985
991
|
layerCount?: (number|null);
|
|
992
|
+
|
|
993
|
+
/** BaseImage registry */
|
|
994
|
+
registry?: (string|null);
|
|
986
995
|
}
|
|
987
996
|
|
|
988
997
|
/** Represents a BaseImage. */
|
|
@@ -1003,6 +1012,9 @@ export namespace grafeas {
|
|
|
1003
1012
|
/** BaseImage layerCount. */
|
|
1004
1013
|
public layerCount: number;
|
|
1005
1014
|
|
|
1015
|
+
/** BaseImage registry. */
|
|
1016
|
+
public registry: string;
|
|
1017
|
+
|
|
1006
1018
|
/**
|
|
1007
1019
|
* Creates a new BaseImage instance using the specified properties.
|
|
1008
1020
|
* @param [properties] Properties to set
|
|
@@ -14648,6 +14660,9 @@ export namespace grafeas {
|
|
|
14648
14660
|
|
|
14649
14661
|
/** VulnerabilityNote cvssV2 */
|
|
14650
14662
|
cvssV2?: (grafeas.v1.ICVSS|null);
|
|
14663
|
+
|
|
14664
|
+
/** VulnerabilityNote advisoryPublishTime */
|
|
14665
|
+
advisoryPublishTime?: (google.protobuf.ITimestamp|null);
|
|
14651
14666
|
}
|
|
14652
14667
|
|
|
14653
14668
|
/** Represents a VulnerabilityNote. */
|
|
@@ -14683,6 +14698,9 @@ export namespace grafeas {
|
|
|
14683
14698
|
/** VulnerabilityNote cvssV2. */
|
|
14684
14699
|
public cvssV2?: (grafeas.v1.ICVSS|null);
|
|
14685
14700
|
|
|
14701
|
+
/** VulnerabilityNote advisoryPublishTime. */
|
|
14702
|
+
public advisoryPublishTime?: (google.protobuf.ITimestamp|null);
|
|
14703
|
+
|
|
14686
14704
|
/**
|
|
14687
14705
|
* Creates a new VulnerabilityNote instance using the specified properties.
|
|
14688
14706
|
* @param [properties] Properties to set
|
package/build/protos/protos.js
CHANGED
|
@@ -2028,6 +2028,7 @@
|
|
|
2028
2028
|
* @interface IFileLocation
|
|
2029
2029
|
* @property {string|null} [filePath] FileLocation filePath
|
|
2030
2030
|
* @property {grafeas.v1.ILayerDetails|null} [layerDetails] FileLocation layerDetails
|
|
2031
|
+
* @property {number|null} [lineNumber] FileLocation lineNumber
|
|
2031
2032
|
*/
|
|
2032
2033
|
|
|
2033
2034
|
/**
|
|
@@ -2061,6 +2062,14 @@
|
|
|
2061
2062
|
*/
|
|
2062
2063
|
FileLocation.prototype.layerDetails = null;
|
|
2063
2064
|
|
|
2065
|
+
/**
|
|
2066
|
+
* FileLocation lineNumber.
|
|
2067
|
+
* @member {number} lineNumber
|
|
2068
|
+
* @memberof grafeas.v1.FileLocation
|
|
2069
|
+
* @instance
|
|
2070
|
+
*/
|
|
2071
|
+
FileLocation.prototype.lineNumber = 0;
|
|
2072
|
+
|
|
2064
2073
|
/**
|
|
2065
2074
|
* Creates a new FileLocation instance using the specified properties.
|
|
2066
2075
|
* @function create
|
|
@@ -2089,6 +2098,8 @@
|
|
|
2089
2098
|
writer.uint32(/* id 1, wireType 2 =*/10).string(message.filePath);
|
|
2090
2099
|
if (message.layerDetails != null && Object.hasOwnProperty.call(message, "layerDetails"))
|
|
2091
2100
|
$root.grafeas.v1.LayerDetails.encode(message.layerDetails, writer.uint32(/* id 2, wireType 2 =*/18).fork()).ldelim();
|
|
2101
|
+
if (message.lineNumber != null && Object.hasOwnProperty.call(message, "lineNumber"))
|
|
2102
|
+
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.lineNumber);
|
|
2092
2103
|
return writer;
|
|
2093
2104
|
};
|
|
2094
2105
|
|
|
@@ -2133,6 +2144,10 @@
|
|
|
2133
2144
|
message.layerDetails = $root.grafeas.v1.LayerDetails.decode(reader, reader.uint32());
|
|
2134
2145
|
break;
|
|
2135
2146
|
}
|
|
2147
|
+
case 3: {
|
|
2148
|
+
message.lineNumber = reader.int32();
|
|
2149
|
+
break;
|
|
2150
|
+
}
|
|
2136
2151
|
default:
|
|
2137
2152
|
reader.skipType(tag & 7);
|
|
2138
2153
|
break;
|
|
@@ -2176,6 +2191,9 @@
|
|
|
2176
2191
|
if (error)
|
|
2177
2192
|
return "layerDetails." + error;
|
|
2178
2193
|
}
|
|
2194
|
+
if (message.lineNumber != null && message.hasOwnProperty("lineNumber"))
|
|
2195
|
+
if (!$util.isInteger(message.lineNumber))
|
|
2196
|
+
return "lineNumber: integer expected";
|
|
2179
2197
|
return null;
|
|
2180
2198
|
};
|
|
2181
2199
|
|
|
@@ -2198,6 +2216,8 @@
|
|
|
2198
2216
|
throw TypeError(".grafeas.v1.FileLocation.layerDetails: object expected");
|
|
2199
2217
|
message.layerDetails = $root.grafeas.v1.LayerDetails.fromObject(object.layerDetails);
|
|
2200
2218
|
}
|
|
2219
|
+
if (object.lineNumber != null)
|
|
2220
|
+
message.lineNumber = object.lineNumber | 0;
|
|
2201
2221
|
return message;
|
|
2202
2222
|
};
|
|
2203
2223
|
|
|
@@ -2217,11 +2237,14 @@
|
|
|
2217
2237
|
if (options.defaults) {
|
|
2218
2238
|
object.filePath = "";
|
|
2219
2239
|
object.layerDetails = null;
|
|
2240
|
+
object.lineNumber = 0;
|
|
2220
2241
|
}
|
|
2221
2242
|
if (message.filePath != null && message.hasOwnProperty("filePath"))
|
|
2222
2243
|
object.filePath = message.filePath;
|
|
2223
2244
|
if (message.layerDetails != null && message.hasOwnProperty("layerDetails"))
|
|
2224
2245
|
object.layerDetails = $root.grafeas.v1.LayerDetails.toObject(message.layerDetails, options);
|
|
2246
|
+
if (message.lineNumber != null && message.hasOwnProperty("lineNumber"))
|
|
2247
|
+
object.lineNumber = message.lineNumber;
|
|
2225
2248
|
return object;
|
|
2226
2249
|
};
|
|
2227
2250
|
|
|
@@ -2263,6 +2286,7 @@
|
|
|
2263
2286
|
* @property {string|null} [name] BaseImage name
|
|
2264
2287
|
* @property {string|null} [repository] BaseImage repository
|
|
2265
2288
|
* @property {number|null} [layerCount] BaseImage layerCount
|
|
2289
|
+
* @property {string|null} [registry] BaseImage registry
|
|
2266
2290
|
*/
|
|
2267
2291
|
|
|
2268
2292
|
/**
|
|
@@ -2304,6 +2328,14 @@
|
|
|
2304
2328
|
*/
|
|
2305
2329
|
BaseImage.prototype.layerCount = 0;
|
|
2306
2330
|
|
|
2331
|
+
/**
|
|
2332
|
+
* BaseImage registry.
|
|
2333
|
+
* @member {string} registry
|
|
2334
|
+
* @memberof grafeas.v1.BaseImage
|
|
2335
|
+
* @instance
|
|
2336
|
+
*/
|
|
2337
|
+
BaseImage.prototype.registry = "";
|
|
2338
|
+
|
|
2307
2339
|
/**
|
|
2308
2340
|
* Creates a new BaseImage instance using the specified properties.
|
|
2309
2341
|
* @function create
|
|
@@ -2334,6 +2366,8 @@
|
|
|
2334
2366
|
writer.uint32(/* id 2, wireType 2 =*/18).string(message.repository);
|
|
2335
2367
|
if (message.layerCount != null && Object.hasOwnProperty.call(message, "layerCount"))
|
|
2336
2368
|
writer.uint32(/* id 3, wireType 0 =*/24).int32(message.layerCount);
|
|
2369
|
+
if (message.registry != null && Object.hasOwnProperty.call(message, "registry"))
|
|
2370
|
+
writer.uint32(/* id 4, wireType 2 =*/34).string(message.registry);
|
|
2337
2371
|
return writer;
|
|
2338
2372
|
};
|
|
2339
2373
|
|
|
@@ -2382,6 +2416,10 @@
|
|
|
2382
2416
|
message.layerCount = reader.int32();
|
|
2383
2417
|
break;
|
|
2384
2418
|
}
|
|
2419
|
+
case 4: {
|
|
2420
|
+
message.registry = reader.string();
|
|
2421
|
+
break;
|
|
2422
|
+
}
|
|
2385
2423
|
default:
|
|
2386
2424
|
reader.skipType(tag & 7);
|
|
2387
2425
|
break;
|
|
@@ -2426,6 +2464,9 @@
|
|
|
2426
2464
|
if (message.layerCount != null && message.hasOwnProperty("layerCount"))
|
|
2427
2465
|
if (!$util.isInteger(message.layerCount))
|
|
2428
2466
|
return "layerCount: integer expected";
|
|
2467
|
+
if (message.registry != null && message.hasOwnProperty("registry"))
|
|
2468
|
+
if (!$util.isString(message.registry))
|
|
2469
|
+
return "registry: string expected";
|
|
2429
2470
|
return null;
|
|
2430
2471
|
};
|
|
2431
2472
|
|
|
@@ -2447,6 +2488,8 @@
|
|
|
2447
2488
|
message.repository = String(object.repository);
|
|
2448
2489
|
if (object.layerCount != null)
|
|
2449
2490
|
message.layerCount = object.layerCount | 0;
|
|
2491
|
+
if (object.registry != null)
|
|
2492
|
+
message.registry = String(object.registry);
|
|
2450
2493
|
return message;
|
|
2451
2494
|
};
|
|
2452
2495
|
|
|
@@ -2467,6 +2510,7 @@
|
|
|
2467
2510
|
object.name = "";
|
|
2468
2511
|
object.repository = "";
|
|
2469
2512
|
object.layerCount = 0;
|
|
2513
|
+
object.registry = "";
|
|
2470
2514
|
}
|
|
2471
2515
|
if (message.name != null && message.hasOwnProperty("name"))
|
|
2472
2516
|
object.name = message.name;
|
|
@@ -2474,6 +2518,8 @@
|
|
|
2474
2518
|
object.repository = message.repository;
|
|
2475
2519
|
if (message.layerCount != null && message.hasOwnProperty("layerCount"))
|
|
2476
2520
|
object.layerCount = message.layerCount;
|
|
2521
|
+
if (message.registry != null && message.hasOwnProperty("registry"))
|
|
2522
|
+
object.registry = message.registry;
|
|
2477
2523
|
return object;
|
|
2478
2524
|
};
|
|
2479
2525
|
|
|
@@ -38217,6 +38263,7 @@
|
|
|
38217
38263
|
* @property {google.protobuf.ITimestamp|null} [sourceUpdateTime] VulnerabilityNote sourceUpdateTime
|
|
38218
38264
|
* @property {grafeas.v1.CVSSVersion|null} [cvssVersion] VulnerabilityNote cvssVersion
|
|
38219
38265
|
* @property {grafeas.v1.ICVSS|null} [cvssV2] VulnerabilityNote cvssV2
|
|
38266
|
+
* @property {google.protobuf.ITimestamp|null} [advisoryPublishTime] VulnerabilityNote advisoryPublishTime
|
|
38220
38267
|
*/
|
|
38221
38268
|
|
|
38222
38269
|
/**
|
|
@@ -38300,6 +38347,14 @@
|
|
|
38300
38347
|
*/
|
|
38301
38348
|
VulnerabilityNote.prototype.cvssV2 = null;
|
|
38302
38349
|
|
|
38350
|
+
/**
|
|
38351
|
+
* VulnerabilityNote advisoryPublishTime.
|
|
38352
|
+
* @member {google.protobuf.ITimestamp|null|undefined} advisoryPublishTime
|
|
38353
|
+
* @memberof grafeas.v1.VulnerabilityNote
|
|
38354
|
+
* @instance
|
|
38355
|
+
*/
|
|
38356
|
+
VulnerabilityNote.prototype.advisoryPublishTime = null;
|
|
38357
|
+
|
|
38303
38358
|
/**
|
|
38304
38359
|
* Creates a new VulnerabilityNote instance using the specified properties.
|
|
38305
38360
|
* @function create
|
|
@@ -38342,6 +38397,8 @@
|
|
|
38342
38397
|
writer.uint32(/* id 7, wireType 0 =*/56).int32(message.cvssVersion);
|
|
38343
38398
|
if (message.cvssV2 != null && Object.hasOwnProperty.call(message, "cvssV2"))
|
|
38344
38399
|
$root.grafeas.v1.CVSS.encode(message.cvssV2, writer.uint32(/* id 8, wireType 2 =*/66).fork()).ldelim();
|
|
38400
|
+
if (message.advisoryPublishTime != null && Object.hasOwnProperty.call(message, "advisoryPublishTime"))
|
|
38401
|
+
$root.google.protobuf.Timestamp.encode(message.advisoryPublishTime, writer.uint32(/* id 9, wireType 2 =*/74).fork()).ldelim();
|
|
38345
38402
|
return writer;
|
|
38346
38403
|
};
|
|
38347
38404
|
|
|
@@ -38414,6 +38471,10 @@
|
|
|
38414
38471
|
message.cvssV2 = $root.grafeas.v1.CVSS.decode(reader, reader.uint32());
|
|
38415
38472
|
break;
|
|
38416
38473
|
}
|
|
38474
|
+
case 9: {
|
|
38475
|
+
message.advisoryPublishTime = $root.google.protobuf.Timestamp.decode(reader, reader.uint32());
|
|
38476
|
+
break;
|
|
38477
|
+
}
|
|
38417
38478
|
default:
|
|
38418
38479
|
reader.skipType(tag & 7);
|
|
38419
38480
|
break;
|
|
@@ -38506,6 +38567,11 @@
|
|
|
38506
38567
|
if (error)
|
|
38507
38568
|
return "cvssV2." + error;
|
|
38508
38569
|
}
|
|
38570
|
+
if (message.advisoryPublishTime != null && message.hasOwnProperty("advisoryPublishTime")) {
|
|
38571
|
+
var error = $root.google.protobuf.Timestamp.verify(message.advisoryPublishTime);
|
|
38572
|
+
if (error)
|
|
38573
|
+
return "advisoryPublishTime." + error;
|
|
38574
|
+
}
|
|
38509
38575
|
return null;
|
|
38510
38576
|
};
|
|
38511
38577
|
|
|
@@ -38610,6 +38676,11 @@
|
|
|
38610
38676
|
throw TypeError(".grafeas.v1.VulnerabilityNote.cvssV2: object expected");
|
|
38611
38677
|
message.cvssV2 = $root.grafeas.v1.CVSS.fromObject(object.cvssV2);
|
|
38612
38678
|
}
|
|
38679
|
+
if (object.advisoryPublishTime != null) {
|
|
38680
|
+
if (typeof object.advisoryPublishTime !== "object")
|
|
38681
|
+
throw TypeError(".grafeas.v1.VulnerabilityNote.advisoryPublishTime: object expected");
|
|
38682
|
+
message.advisoryPublishTime = $root.google.protobuf.Timestamp.fromObject(object.advisoryPublishTime);
|
|
38683
|
+
}
|
|
38613
38684
|
return message;
|
|
38614
38685
|
};
|
|
38615
38686
|
|
|
@@ -38637,6 +38708,7 @@
|
|
|
38637
38708
|
object.sourceUpdateTime = null;
|
|
38638
38709
|
object.cvssVersion = options.enums === String ? "CVSS_VERSION_UNSPECIFIED" : 0;
|
|
38639
38710
|
object.cvssV2 = null;
|
|
38711
|
+
object.advisoryPublishTime = null;
|
|
38640
38712
|
}
|
|
38641
38713
|
if (message.cvssScore != null && message.hasOwnProperty("cvssScore"))
|
|
38642
38714
|
object.cvssScore = options.json && !isFinite(message.cvssScore) ? String(message.cvssScore) : message.cvssScore;
|
|
@@ -38660,6 +38732,8 @@
|
|
|
38660
38732
|
object.cvssVersion = options.enums === String ? $root.grafeas.v1.CVSSVersion[message.cvssVersion] === undefined ? message.cvssVersion : $root.grafeas.v1.CVSSVersion[message.cvssVersion] : message.cvssVersion;
|
|
38661
38733
|
if (message.cvssV2 != null && message.hasOwnProperty("cvssV2"))
|
|
38662
38734
|
object.cvssV2 = $root.grafeas.v1.CVSS.toObject(message.cvssV2, options);
|
|
38735
|
+
if (message.advisoryPublishTime != null && message.hasOwnProperty("advisoryPublishTime"))
|
|
38736
|
+
object.advisoryPublishTime = $root.google.protobuf.Timestamp.toObject(message.advisoryPublishTime, options);
|
|
38663
38737
|
return object;
|
|
38664
38738
|
};
|
|
38665
38739
|
|
package/build/protos/protos.json
CHANGED
|
@@ -147,6 +147,10 @@
|
|
|
147
147
|
"layerDetails": {
|
|
148
148
|
"type": "LayerDetails",
|
|
149
149
|
"id": 2
|
|
150
|
+
},
|
|
151
|
+
"lineNumber": {
|
|
152
|
+
"type": "int32",
|
|
153
|
+
"id": 3
|
|
150
154
|
}
|
|
151
155
|
}
|
|
152
156
|
},
|
|
@@ -163,6 +167,10 @@
|
|
|
163
167
|
"layerCount": {
|
|
164
168
|
"type": "int32",
|
|
165
169
|
"id": 3
|
|
170
|
+
},
|
|
171
|
+
"registry": {
|
|
172
|
+
"type": "string",
|
|
173
|
+
"id": 4
|
|
166
174
|
}
|
|
167
175
|
}
|
|
168
176
|
},
|
|
@@ -3331,6 +3339,10 @@
|
|
|
3331
3339
|
"cvssV2": {
|
|
3332
3340
|
"type": "CVSS",
|
|
3333
3341
|
"id": 8
|
|
3342
|
+
},
|
|
3343
|
+
"advisoryPublishTime": {
|
|
3344
|
+
"type": "google.protobuf.Timestamp",
|
|
3345
|
+
"id": 9
|
|
3334
3346
|
}
|
|
3335
3347
|
},
|
|
3336
3348
|
"nested": {
|