Skip to content

Commit 9f998b4

Browse files
feat(ondemandscanning): update the api
#### ondemandscanning:v1 The following keys were deleted: - schemas.InTotoStatement.properties.type.type (Total Keys: 1) The following keys were added: - schemas.BuildOccurrence.properties.intotoStatement.$ref (Total Keys: 1) - schemas.InTotoStatement.properties._type.type (Total Keys: 1) - schemas.InTotoStatement.properties.slsaProvenance.$ref (Total Keys: 1) - schemas.Material (Total Keys: 5) - schemas.SlsaBuilder (Total Keys: 3) - schemas.SlsaCompleteness (Total Keys: 5) - schemas.SlsaMetadata (Total Keys: 9) - schemas.SlsaProvenance (Total Keys: 7) - schemas.SlsaRecipe (Total Keys: 10) #### ondemandscanning:v1beta1 The following keys were deleted: - schemas.InTotoStatement.properties.type.type (Total Keys: 1) The following keys were added: - schemas.BuildOccurrence.properties.intotoStatement.$ref (Total Keys: 1) - schemas.InTotoStatement.properties._type.type (Total Keys: 1) - schemas.InTotoStatement.properties.slsaProvenance.$ref (Total Keys: 1) - schemas.Material (Total Keys: 5) - schemas.SlsaBuilder (Total Keys: 3) - schemas.SlsaCompleteness (Total Keys: 5) - schemas.SlsaMetadata (Total Keys: 9) - schemas.SlsaProvenance (Total Keys: 7) - schemas.SlsaRecipe (Total Keys: 10)
1 parent 6f895da commit 9f998b4

5 files changed

+544
-32
lines changed

docs/dyn/ondemandscanning_v1.projects.locations.scans.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ <h3>Method Details</h3>
9696
The object takes the form of:
9797

9898
{ # AnalyzePackagesRequest is the request to analyze a list of packages and create Vulnerability Occurrences for it.
99-
&quot;includeOsvData&quot;: True or False, # Whether to include OSV data in the scan.
99+
&quot;includeOsvData&quot;: True or False, # [DEPRECATED] Whether to include OSV data in the scan. For backwards compatibility reasons, this field can be neither removed nor renamed.
100100
&quot;packages&quot;: [ # The packages to analyze.
101101
{
102102
&quot;cpeUri&quot;: &quot;A String&quot;, # The cpe_uri in [cpe format] (https://cpe.mitre.org/specification/) in which the vulnerability may manifest. Examples include distro or storage location for vulnerable jar.

docs/dyn/ondemandscanning_v1.projects.locations.scans.vulnerabilities.html

Lines changed: 122 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -124,7 +124,7 @@ <h3>Method Details</h3>
124124
],
125125
},
126126
&quot;build&quot;: { # Details of a build occurrence. # Describes a verifiable build.
127-
&quot;intotoProvenance&quot;: { # In-toto Provenance representation as defined in spec.
127+
&quot;intotoProvenance&quot;: { # Deprecated. See InTotoStatement for the replacement. In-toto Provenance representation as defined in spec.
128128
&quot;builderConfig&quot;: { # required
129129
&quot;id&quot;: &quot;A String&quot;,
130130
},
@@ -158,7 +158,88 @@ <h3>Method Details</h3>
158158
&quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
159159
},
160160
},
161-
&quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # Required. The actual provenance for the build.
161+
&quot;intotoStatement&quot;: { # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always &quot;application/vnd.in-toto+json&quot;. # In-toto Statement representation as defined in spec. The intoto_statement can contain any type of provenance. The serialized payload of the statement can be stored and signed in the Occurrence&#x27;s envelope.
162+
&quot;_type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
163+
&quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://slsa.dev/provenance/v0.1&quot; for SlsaProvenance.
164+
&quot;provenance&quot;: {
165+
&quot;builderConfig&quot;: { # required
166+
&quot;id&quot;: &quot;A String&quot;,
167+
},
168+
&quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
169+
&quot;A String&quot;,
170+
],
171+
&quot;metadata&quot;: { # Other properties of the build.
172+
&quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
173+
&quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
174+
&quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
175+
&quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
176+
&quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
177+
&quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
178+
&quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
179+
},
180+
&quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
181+
},
182+
&quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
183+
&quot;arguments&quot;: [ # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint. Since the arguments field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
184+
{
185+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
186+
},
187+
],
188+
&quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
189+
&quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
190+
&quot;environment&quot;: [ # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Since the environment field can greatly vary in structure, depending on the builder and recipe type, this is of form &quot;Any&quot;.
191+
{
192+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
193+
},
194+
],
195+
&quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
196+
},
197+
},
198+
&quot;slsaProvenance&quot;: {
199+
&quot;builder&quot;: { # required
200+
&quot;id&quot;: &quot;A String&quot;,
201+
},
202+
&quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
203+
{
204+
&quot;digest&quot;: {
205+
&quot;a_key&quot;: &quot;A String&quot;,
206+
},
207+
&quot;uri&quot;: &quot;A String&quot;,
208+
},
209+
],
210+
&quot;metadata&quot;: { # Other properties of the build.
211+
&quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
212+
&quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
213+
&quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
214+
&quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
215+
&quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
216+
&quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
217+
&quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
218+
},
219+
&quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
220+
},
221+
&quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
222+
&quot;arguments&quot;: { # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint. Depending on the recipe Type, the structure may be different.
223+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
224+
},
225+
&quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
226+
&quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
227+
&quot;environment&quot;: { # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Depending on the recipe Type, the structure may be different.
228+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
229+
},
230+
&quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
231+
},
232+
},
233+
&quot;subject&quot;: [
234+
{
235+
&quot;digest&quot;: { # &quot;&quot;: &quot;&quot; Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet
236+
&quot;a_key&quot;: &quot;A String&quot;,
237+
},
238+
&quot;name&quot;: &quot;A String&quot;,
239+
},
240+
],
241+
},
242+
&quot;provenance&quot;: { # Provenance of a build. Contains all information needed to verify the full details about the build from source to completion. # The actual provenance for the build.
162243
&quot;buildOptions&quot;: { # Special options applied to this build. This is a catch-all field where build providers can enter any desired additional details.
163244
&quot;a_key&quot;: &quot;A String&quot;,
164245
},
@@ -315,7 +396,7 @@ <h3>Method Details</h3>
315396
&quot;cpe&quot;: &quot;A String&quot;, # The CPE of the resource being scanned.
316397
&quot;lastScanTime&quot;: &quot;A String&quot;, # The last time this resource was scanned.
317398
},
318-
&quot;dsseAttestation&quot;: { # Describes an attestation of an artifact using dsse.
399+
&quot;dsseAttestation&quot;: { # Deprecated. Prefer to use a regular Occurrence, and populate the Envelope at the top level of the Occurrence. # Describes an attestation of an artifact using dsse.
319400
&quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # If doing something security critical, make sure to verify the signatures in this metadata.
320401
&quot;payload&quot;: &quot;A String&quot;,
321402
&quot;payloadType&quot;: &quot;A String&quot;,
@@ -327,7 +408,8 @@ <h3>Method Details</h3>
327408
],
328409
},
329410
&quot;statement&quot;: { # Spec defined at https://github.com/in-toto/attestation/tree/main/spec#statement The serialized InTotoStatement will be stored as Envelope.payload. Envelope.payloadType is always &quot;application/vnd.in-toto+json&quot;.
330-
&quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
411+
&quot;_type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
412+
&quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://slsa.dev/provenance/v0.1&quot; for SlsaProvenance.
331413
&quot;provenance&quot;: {
332414
&quot;builderConfig&quot;: { # required
333415
&quot;id&quot;: &quot;A String&quot;,
@@ -362,15 +444,49 @@ <h3>Method Details</h3>
362444
&quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
363445
},
364446
},
447+
&quot;slsaProvenance&quot;: {
448+
&quot;builder&quot;: { # required
449+
&quot;id&quot;: &quot;A String&quot;,
450+
},
451+
&quot;materials&quot;: [ # The collection of artifacts that influenced the build including sources, dependencies, build tools, base images, and so on. This is considered to be incomplete unless metadata.completeness.materials is true. Unset or null is equivalent to empty.
452+
{
453+
&quot;digest&quot;: {
454+
&quot;a_key&quot;: &quot;A String&quot;,
455+
},
456+
&quot;uri&quot;: &quot;A String&quot;,
457+
},
458+
],
459+
&quot;metadata&quot;: { # Other properties of the build.
460+
&quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
461+
&quot;buildInvocationId&quot;: &quot;A String&quot;, # Identifies the particular build invocation, which can be useful for finding associated logs or other ad-hoc analysis. The value SHOULD be globally unique, per in-toto Provenance spec.
462+
&quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
463+
&quot;completeness&quot;: { # Indicates that the builder claims certain fields in this message to be complete. # Indicates that the builder claims certain fields in this message to be complete.
464+
&quot;arguments&quot;: True or False, # If true, the builder claims that recipe.arguments is complete, meaning that all external inputs are properly captured in the recipe.
465+
&quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
466+
&quot;materials&quot;: True or False, # If true, the builder claims that materials are complete, usually through some controls to prevent network access. Sometimes called &quot;hermetic&quot;.
467+
},
468+
&quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
469+
},
470+
&quot;recipe&quot;: { # Steps taken to build the artifact. For a TaskRun, typically each container corresponds to one step in the recipe. # Identifies the configuration used for the build. When combined with materials, this SHOULD fully describe the build, such that re-running this recipe results in bit-for-bit identical output (if the build is reproducible). required
471+
&quot;arguments&quot;: { # Collection of all external inputs that influenced the build on top of recipe.definedInMaterial and recipe.entryPoint. For example, if the recipe type were &quot;make&quot;, then this might be the flags passed to make aside from the target, which is captured in recipe.entryPoint. Depending on the recipe Type, the structure may be different.
472+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
473+
},
474+
&quot;definedInMaterial&quot;: &quot;A String&quot;, # Index in materials containing the recipe steps that are not implied by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would point to the source containing the Makefile, not the make program itself. Set to -1 if the recipe doesn&#x27;t come from a material, as zero is default unset value for int64.
475+
&quot;entryPoint&quot;: &quot;A String&quot;, # String identifying the entry point into the build. This is often a path to a configuration file and/or a target label within that file. The syntax and meaning are defined by recipe.type. For example, if the recipe type were &quot;make&quot;, then this would reference the directory in which to run make as well as which target to use.
476+
&quot;environment&quot;: { # Any other builder-controlled inputs necessary for correctly evaluating the recipe. Usually only needed for reproducing the build but not evaluated as part of policy. Depending on the recipe Type, the structure may be different.
477+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
478+
},
479+
&quot;type&quot;: &quot;A String&quot;, # URI indicating what type of recipe was performed. It determines the meaning of recipe.entryPoint, recipe.arguments, recipe.environment, and materials.
480+
},
481+
},
365482
&quot;subject&quot;: [
366483
{
367-
&quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
484+
&quot;digest&quot;: { # &quot;&quot;: &quot;&quot; Algorithms can be e.g. sha256, sha512 See https://github.com/in-toto/attestation/blob/main/spec/field_types.md#DigestSet
368485
&quot;a_key&quot;: &quot;A String&quot;,
369486
},
370487
&quot;name&quot;: &quot;A String&quot;,
371488
},
372489
],
373-
&quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
374490
},
375491
},
376492
&quot;envelope&quot;: { # MUST match https://github.com/secure-systems-lab/dsse/blob/master/envelope.proto. An authenticated message of arbitrary type. # https://github.com/secure-systems-lab/dsse

0 commit comments

Comments
 (0)