FazBrowse GitHub Viewer | Trending |
URL:
| Home
Tools: [Download Repo ZIP]   [Original HTTPS Page]

feat: Added line_number to FileLocation · googleapis/googleapis@e8e4e1e · GitHub

Commit e8e4e1e

Browse files
authored andcommitted
feat: Added line_number to FileLocation
PiperOrigin-RevId: 882149723
1 parent bce678d commit e8e4e1e

2 files changed

Lines changed: 8 additions & 0 deletions

File tree

‎grafeas/v1/common.proto‎

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -134,6 +134,9 @@ message FileLocation {
134134
// Each package found in a file should have its own layer metadata (that is,
135135
// information from the origin layer of the package).
136136
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;
137140
}
138141

139142
// BaseImage describes a base image of a container image.

‎grafeas/v1/swagger/grafeas.swagger.json‎

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3148,6 +3148,11 @@
31483148
"layerDetails": {
31493149
"$ref": "#/definitions/v1LayerDetails",
31503150
"description": "Each package found in a file should have its own layer metadata (that is, information\nfrom the origin layer of the package)."
3151+
},
3152+
"lineNumber": {
3153+
"type": "integer",
3154+
"format": "int32",
3155+
"description": "Line number in the file where the package was found. \nOptional field that only applies to source repository scanning."
31513156
}
31523157
},
31533158
"description": "Indicates the location at which a package was found."

0 commit comments

Comments
 (0)

Back | FazBrowse Home | New Git URL