Skip to content

Commit 618985b

Browse files
feat(containeranalysis): update the api
#### containeranalysis:v1 The following keys were deleted: - schemas.BuildStep (Total Keys: 25) - schemas.InTotoStatement.properties.type.type (Total Keys: 1) - schemas.TimeSpan (Total Keys: 6) - schemas.Volume (Total Keys: 4) The following keys were added: - schemas.BuildOccurrence.properties.intotoStatement.$ref (Total Keys: 1) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig (Total Keys: 3) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult (Total Keys: 9) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts (Total Keys: 12) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Build (Total Keys: 121) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage (Total Keys: 6) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes (Total Keys: 4) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Hash (Total Keys: 5) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret (Total Keys: 6) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource (Total Keys: 11) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Results (Total Keys: 13) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Secret (Total Keys: 16) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Source (Total Keys: 13) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource (Total Keys: 12) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan (Total Keys: 6) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Volume (Total Keys: 4) - 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) #### containeranalysis:v1alpha1 The following keys were deleted: - schemas.BuildStep (Total Keys: 25) - schemas.InTotoStatement.properties.type.type (Total Keys: 1) - schemas.TimeSpan (Total Keys: 6) - schemas.Volume (Total Keys: 4) The following keys were added: - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig (Total Keys: 3) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult (Total Keys: 9) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts (Total Keys: 12) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Build (Total Keys: 121) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage (Total Keys: 6) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes (Total Keys: 4) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Hash (Total Keys: 5) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret (Total Keys: 6) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource (Total Keys: 11) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Results (Total Keys: 13) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Secret (Total Keys: 16) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Source (Total Keys: 13) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource (Total Keys: 12) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan (Total Keys: 6) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Volume (Total Keys: 4) - 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) #### containeranalysis:v1beta1 The following keys were deleted: - schemas.BuildStep (Total Keys: 25) - schemas.TimeSpan (Total Keys: 6) - schemas.Volume (Total Keys: 4) The following keys were added: - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalConfig (Total Keys: 3) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1ApprovalResult (Total Keys: 9) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Artifacts (Total Keys: 12) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Build (Total Keys: 121) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1BuiltImage (Total Keys: 6) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1FileHashes (Total Keys: 4) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Hash (Total Keys: 5) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1InlineSecret (Total Keys: 6) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1RepoSource (Total Keys: 11) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Results (Total Keys: 13) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Secret (Total Keys: 16) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Source (Total Keys: 13) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1StorageSource (Total Keys: 12) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1TimeSpan (Total Keys: 6) - schemas.ContaineranalysisGoogleDevtoolsCloudbuildV1Volume (Total Keys: 4)
1 parent 090baf9 commit 618985b

13 files changed

+4818
-717
lines changed

docs/dyn/containeranalysis_v1.projects.notes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1192,7 +1192,7 @@ <h3>Method Details</h3>
11921192

11931193
{ # Request message for `GetIamPolicy` method.
11941194
&quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
1195-
&quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
1195+
&quot;requestedPolicyVersion&quot;: 42, # Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
11961196
},
11971197
}
11981198

docs/dyn/containeranalysis_v1.projects.notes.occurrences.html

Lines changed: 122 additions & 6 deletions
Large diffs are not rendered by default.

docs/dyn/containeranalysis_v1.projects.occurrences.html

Lines changed: 999 additions & 71 deletions
Large diffs are not rendered by default.

docs/dyn/containeranalysis_v1alpha1.projects.notes.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -764,7 +764,7 @@ <h3>Method Details</h3>
764764

765765
{ # Request message for `GetIamPolicy` method.
766766
&quot;options&quot;: { # Encapsulates settings provided to GetIamPolicy. # OPTIONAL: A `GetPolicyOptions` object for specifying options to `GetIamPolicy`.
767-
&quot;requestedPolicyVersion&quot;: 42, # Optional. The policy format version to be returned. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional bindings must specify version 3. Policies without any conditional bindings may specify any valid value or leave the field unset. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
767+
&quot;requestedPolicyVersion&quot;: 42, # Optional. The maximum policy version that will be used to format the policy. Valid values are 0, 1, and 3. Requests specifying an invalid value will be rejected. Requests for policies with any conditional role bindings must specify version 3. Policies with no conditional role bindings may specify any valid value or leave the field unset. The policy in the response might use the policy version that you specified, or it might use a lower policy version. For example, if you specify version 3, but the policy has no conditional role bindings, the response uses version 1. To learn which resources support conditions in their IAM policies, see the [IAM documentation](https://cloud.google.com/iam/help/conditions/resource-policies).
768768
},
769769
}
770770

docs/dyn/containeranalysis_v1alpha1.projects.notes.occurrences.html

Lines changed: 42 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -373,8 +373,9 @@ <h3>Method Details</h3>
373373
],
374374
},
375375
&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;.
376-
&quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://in-toto.io/Provenance/v0.1&quot; for InTotoProvenance.
377-
&quot;provenance&quot;: {
376+
&quot;_type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
377+
&quot;predicateType&quot;: &quot;A String&quot;, # &quot;https://slsa.dev/provenance/v0.1&quot; for SlsaProvenance.
378+
&quot;provenance&quot;: { # provenance is a predicate of type intotoprovenance
378379
&quot;builderConfig&quot;: { # required
379380
&quot;id&quot;: &quot;A String&quot;,
380381
},
@@ -408,15 +409,49 @@ <h3>Method Details</h3>
408409
&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.
409410
},
410411
},
411-
&quot;subject&quot;: [
412-
{
413-
&quot;digest&quot;: { # &quot;&quot;: &quot;&quot;
412+
&quot;slsaProvenance&quot;: { # SlsaProvenance is the slsa provenance as defined by the slsa spec. # slsa_provenance is a predicate of type slsaProvenance
413+
&quot;builder&quot;: { # SlsaBuilder encapsulates the identity of the builder of this provenance. # builder is the builder of this provenance
414+
&quot;id&quot;: &quot;A String&quot;, # id is the id of the slsa provenance builder
415+
},
416+
&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.
417+
{ # Material is a material used in the generation of the provenance
418+
&quot;digest&quot;: { # digest is a map from a hash algorithm (e.g. sha256) to the value in the material
419+
&quot;a_key&quot;: &quot;A String&quot;,
420+
},
421+
&quot;uri&quot;: &quot;A String&quot;, # uri is the uri of the material
422+
},
423+
],
424+
&quot;metadata&quot;: { # Other properties of the build. # metadata is the metadata of the provenance
425+
&quot;buildFinishedOn&quot;: &quot;A String&quot;, # The timestamp of when the build completed.
426+
&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.
427+
&quot;buildStartedOn&quot;: &quot;A String&quot;, # The timestamp of when the build started.
428+
&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.
429+
&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.
430+
&quot;environment&quot;: True or False, # If true, the builder claims that recipe.environment is claimed to be complete.
431+
&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;.
432+
},
433+
&quot;reproducible&quot;: True or False, # If true, the builder claims that running the recipe on materials will produce bit-for-bit identical output.
434+
},
435+
&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).
436+
&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.
437+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
438+
},
439+
&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.
440+
&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.
441+
&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.
442+
&quot;a_key&quot;: &quot;&quot;, # Properties of the object. Contains field @type with type URL.
443+
},
444+
&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.
445+
},
446+
},
447+
&quot;subject&quot;: [ # subject is the subjects of the intoto statement
448+
{ # Subject refers to the subject of the intoto statement
449+
&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
414450
&quot;a_key&quot;: &quot;A String&quot;,
415451
},
416-
&quot;name&quot;: &quot;A String&quot;,
452+
&quot;name&quot;: &quot;A String&quot;, # name is the name of the Subject used here
417453
},
418454
],
419-
&quot;type&quot;: &quot;A String&quot;, # Always &quot;https://in-toto.io/Statement/v0.1&quot;.
420455
},
421456
},
422457
&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)