Skip to content

Commit e966ac0

Browse files
Google APIscopybara-github
authored andcommitted
feat: ondemandscanning public protos
Committer: @hkdevandla PiperOrigin-RevId: 377096212
1 parent 0cfebe6 commit e966ac0

10 files changed

Lines changed: 1164 additions & 0 deletions

File tree

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,93 @@
1+
load("@rules_proto//proto:defs.bzl", "proto_library")
2+
3+
# This is an API workspace, having public visibility by default makes perfect sense.
4+
package(default_visibility = ["//visibility:public"])
5+
6+
proto_library(
7+
name = "package_proto",
8+
srcs = [
9+
"package.proto"
10+
],
11+
)
12+
13+
14+
##############################################################################
15+
# Java
16+
##############################################################################
17+
load("@com_google_googleapis_imports//:imports.bzl", "java_proto_library")
18+
19+
java_proto_library(
20+
name = "package_java_proto",
21+
deps = [
22+
"package_proto",
23+
],
24+
)
25+
26+
27+
##############################################################################
28+
# Python
29+
##############################################################################
30+
load("@com_google_googleapis_imports//:imports.bzl", "py_proto_library")
31+
py_proto_library(
32+
name = "package_py_pb2",
33+
deps = [
34+
":package_proto"
35+
],
36+
)
37+
38+
##############################################################################
39+
# PHP
40+
##############################################################################
41+
load(
42+
"@com_google_googleapis_imports//:imports.bzl", "php_proto_library")
43+
44+
php_proto_library(
45+
name = "package_php_proto",
46+
deps = [
47+
":package_proto"
48+
],
49+
)
50+
51+
52+
##############################################################################
53+
# Ruby
54+
##############################################################################
55+
load(
56+
"@com_google_googleapis_imports//:imports.bzl", "ruby_proto_library")
57+
58+
ruby_proto_library(
59+
name = "package_ruby_proto",
60+
deps = [
61+
":package_proto"
62+
],
63+
)
64+
65+
##############################################################################
66+
# C#
67+
##############################################################################
68+
load(
69+
"@com_google_googleapis_imports//:imports.bzl", "csharp_proto_library")
70+
71+
csharp_proto_library(
72+
name = "package_csharp_proto",
73+
deps = [
74+
":package_proto"
75+
],
76+
)
77+
78+
##############################################################################
79+
# Go
80+
##############################################################################
81+
load(
82+
"@com_google_googleapis_imports//:imports.bzl",
83+
"go_proto_library"
84+
)
85+
86+
go_proto_library(
87+
name = "package_go_proto",
88+
importpath = "google.golang.org/genproto/googleapis/cloud/containers/workflow/vulnerability/package",
89+
protos = [
90+
":package_proto"
91+
],
92+
)
93+
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
syntax = "proto3";
2+
3+
package cloud_containers.workflow.analysis.vulnerability.proto;
4+
5+
message PackageData {
6+
// The package being analysed for vulnerabilities
7+
string package = 1;
8+
9+
// The version of the package being analysed
10+
string version = 2;
11+
12+
// The OS affected by a vulnerability
13+
// This field is deprecated and the information is in cpe_uri
14+
string os = 3 [deprecated = true];
15+
16+
// The version of the OS
17+
// This field is deprecated and the information is in cpe_uri
18+
string os_version = 4 [deprecated = true];
19+
20+
// The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in
21+
// which the vulnerability may manifest. Examples include distro or storage
22+
// location for vulnerable jar.
23+
string cpe_uri = 5;
24+
25+
string unused = 6;
26+
}

0 commit comments

Comments
 (0)