Skip to content

Commit ad5c477

Browse files
Google APIscopybara-github
authored andcommitted
feat: A new field version is added to message .grafeas.v1.ComplianceOccurrence
feat: A new message `VulnerabilityAttestation` is added feat: A new field `vulnerability_attestation` is added to message `.grafeas.v1.DiscoveryOccurrence` PiperOrigin-RevId: 657298794
1 parent 05e8031 commit ad5c477

4 files changed

Lines changed: 467 additions & 16 deletions

File tree

grafeas/v1/compliance.proto

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,8 @@ message ComplianceVersion {
6969
message ComplianceOccurrence {
7070
repeated NonCompliantFile non_compliant_files = 2;
7171
string non_compliance_reason = 3;
72+
// The OS and config version the benchmark was run on.
73+
grafeas.v1.ComplianceVersion version = 4;
7274
}
7375

7476
// Details about files that caused a compliance check to fail.

grafeas/v1/discovery.proto

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -123,4 +123,29 @@ message DiscoveryOccurrence {
123123

124124
// The status of an SBOM generation.
125125
SBOMStatus sbom_status = 9;
126+
127+
// The status of an vulnerability attestation generation.
128+
message VulnerabilityAttestation {
129+
// An enum indicating the state of the attestation generation.
130+
enum VulnerabilityAttestationState {
131+
// Default unknown state.
132+
VULNERABILITY_ATTESTATION_STATE_UNSPECIFIED = 0;
133+
// Attestation was successfully generated and stored.
134+
SUCCESS = 1;
135+
// Attestation was unsuccessfully generated and stored.
136+
FAILURE = 2;
137+
}
138+
139+
// The last time we attempted to generate an attestation.
140+
google.protobuf.Timestamp last_attempt_time = 1;
141+
142+
// The success/failure state of the latest attestation attempt.
143+
VulnerabilityAttestationState state = 2;
144+
145+
// If failure, the error reason for why the attestation generation failed.
146+
string error = 3;
147+
}
148+
149+
// The status of an vulnerability attestation generation.
150+
VulnerabilityAttestation vulnerability_attestation = 10;
126151
}

grafeas/v1/grafeas.proto

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,6 +93,9 @@ service Grafeas {
9393
returns (google.protobuf.Empty) {
9494
option (google.api.http) = {
9595
delete: "/v1/{name=projects/*/occurrences/*}"
96+
additional_bindings {
97+
delete: "/v1/{name=projects/*/locations/*/occurrences/*}"
98+
}
9699
};
97100
option (google.api.method_signature) = "name";
98101
}
@@ -102,6 +105,10 @@ service Grafeas {
102105
option (google.api.http) = {
103106
post: "/v1/{parent=projects/*}/occurrences"
104107
body: "occurrence"
108+
additional_bindings {
109+
post: "/v1/{parent=projects/*/locations/*}/occurrences"
110+
body: "occurrence"
111+
}
105112
};
106113
option (google.api.method_signature) = "parent,occurrence";
107114
}
@@ -112,6 +119,10 @@ service Grafeas {
112119
option (google.api.http) = {
113120
post: "/v1/{parent=projects/*}/occurrences:batchCreate"
114121
body: "*"
122+
additional_bindings {
123+
post: "/v1/{parent=projects/*/locations/*}/occurrences:batchCreate"
124+
body: "*"
125+
}
115126
};
116127
option (google.api.method_signature) = "parent,occurrences";
117128
}
@@ -121,6 +132,10 @@ service Grafeas {
121132
option (google.api.http) = {
122133
patch: "/v1/{name=projects/*/occurrences/*}"
123134
body: "occurrence"
135+
additional_bindings {
136+
patch: "/v1/{name=projects/*/locations/*/occurrences/*}"
137+
body: "occurrence"
138+
}
124139
};
125140
option (google.api.method_signature) = "name,occurrence,update_mask";
126141
}
@@ -159,6 +174,9 @@ service Grafeas {
159174
rpc DeleteNote(DeleteNoteRequest) returns (google.protobuf.Empty) {
160175
option (google.api.http) = {
161176
delete: "/v1/{name=projects/*/notes/*}"
177+
additional_bindings {
178+
delete: "/v1/{name=projects/*/locations/*/notes/*}"
179+
}
162180
};
163181
option (google.api.method_signature) = "name";
164182
}
@@ -168,6 +186,10 @@ service Grafeas {
168186
option (google.api.http) = {
169187
post: "/v1/{parent=projects/*}/notes"
170188
body: "note"
189+
additional_bindings {
190+
post: "/v1/{parent=projects/*/locations/*}/notes"
191+
body: "note"
192+
}
171193
};
172194
option (google.api.method_signature) = "parent,note_id,note";
173195
}
@@ -178,6 +200,10 @@ service Grafeas {
178200
option (google.api.http) = {
179201
post: "/v1/{parent=projects/*}/notes:batchCreate"
180202
body: "*"
203+
additional_bindings {
204+
post: "/v1/{parent=projects/*/locations/*}/notes:batchCreate"
205+
body: "*"
206+
}
181207
};
182208
option (google.api.method_signature) = "parent,notes";
183209
}
@@ -187,6 +213,10 @@ service Grafeas {
187213
option (google.api.http) = {
188214
patch: "/v1/{name=projects/*/notes/*}"
189215
body: "note"
216+
additional_bindings {
217+
patch: "/v1/{name=projects/*/locations/*/notes/*}"
218+
body: "note"
219+
}
190220
};
191221
option (google.api.method_signature) = "name,note,update_mask";
192222
}

0 commit comments

Comments
 (0)