Documentation
¶
Index ¶
- Variables
- func ListAvailableMaterialKind() []string
- func ValidatePolicyAttachmentRef(ref string) error
- type Annotation
- type AutoMatch
- func (*AutoMatch) Descriptor() ([]byte, []int)deprecated
- func (x *AutoMatch) GetEmbedded() string
- func (x *AutoMatch) GetPath() string
- func (m *AutoMatch) GetSource() isAutoMatch_Source
- func (*AutoMatch) ProtoMessage()
- func (x *AutoMatch) ProtoReflect() protoreflect.Message
- func (x *AutoMatch) Reset()
- func (x *AutoMatch) String() string
- type AutoMatch_Embedded
- type AutoMatch_Path
- type CraftingSchemadeprecated
- func (*CraftingSchema) Descriptor() ([]byte, []int)deprecated
- func (x *CraftingSchema) GetAnnotations() []*Annotationdeprecated
- func (x *CraftingSchema) GetEnvAllowList() []stringdeprecated
- func (x *CraftingSchema) GetMaterials() []*CraftingSchema_Materialdeprecated
- func (x *CraftingSchema) GetPolicies() *Policiesdeprecated
- func (x *CraftingSchema) GetPolicyGroups() []*PolicyGroupAttachmentdeprecated
- func (x *CraftingSchema) GetRunner() *CraftingSchema_Runnerdeprecated
- func (x *CraftingSchema) GetSchemaVersion() stringdeprecated
- func (*CraftingSchema) ProtoMessage()
- func (x *CraftingSchema) ProtoReflect() protoreflect.Message
- func (x *CraftingSchema) Reset()
- func (x *CraftingSchema) String() string
- func (schema *CraftingSchema) ValidatePolicyAttachments() error
- func (schema *CraftingSchema) ValidateUniqueMaterialName() error
- type CraftingSchemaV2
- func (*CraftingSchemaV2) Descriptor() ([]byte, []int)deprecated
- func (x *CraftingSchemaV2) GetApiVersion() string
- func (x *CraftingSchemaV2) GetKind() string
- func (x *CraftingSchemaV2) GetMetadata() *Metadata
- func (x *CraftingSchemaV2) GetSpec() *CraftingSchemaV2Spec
- func (*CraftingSchemaV2) ProtoMessage()
- func (x *CraftingSchemaV2) ProtoReflect() protoreflect.Message
- func (x *CraftingSchemaV2) Reset()
- func (x *CraftingSchemaV2) String() string
- func (contract *CraftingSchemaV2) ToV1() *CraftingSchema
- func (contract *CraftingSchemaV2) ValidatePolicyAttachments() error
- func (contract *CraftingSchemaV2) ValidateUniqueMaterialName() error
- type CraftingSchemaV2Spec
- func (*CraftingSchemaV2Spec) Descriptor() ([]byte, []int)deprecated
- func (x *CraftingSchemaV2Spec) GetEnvAllowList() []string
- func (x *CraftingSchemaV2Spec) GetMaterials() []*CraftingSchema_Material
- func (x *CraftingSchemaV2Spec) GetPolicies() *Policies
- func (x *CraftingSchemaV2Spec) GetPolicyGroups() []*PolicyGroupAttachment
- func (x *CraftingSchemaV2Spec) GetRunner() *CraftingSchema_Runner
- func (*CraftingSchemaV2Spec) ProtoMessage()
- func (x *CraftingSchemaV2Spec) ProtoReflect() protoreflect.Message
- func (x *CraftingSchemaV2Spec) Reset()
- func (x *CraftingSchemaV2Spec) String() string
- type CraftingSchema_Materialdeprecated
- func (*CraftingSchema_Material) Descriptor() ([]byte, []int)deprecated
- func (x *CraftingSchema_Material) GetAnnotations() []*Annotationdeprecated
- func (x *CraftingSchema_Material) GetName() stringdeprecated
- func (x *CraftingSchema_Material) GetOptional() booldeprecated
- func (x *CraftingSchema_Material) GetOutput() booldeprecated
- func (x *CraftingSchema_Material) GetType() CraftingSchema_Material_MaterialTypedeprecated
- func (*CraftingSchema_Material) ProtoMessage()
- func (x *CraftingSchema_Material) ProtoReflect() protoreflect.Message
- func (x *CraftingSchema_Material) Reset()
- func (x *CraftingSchema_Material) String() string
- type CraftingSchema_Material_MaterialType
- func (CraftingSchema_Material_MaterialType) Descriptor() protoreflect.EnumDescriptor
- func (x CraftingSchema_Material_MaterialType) Enum() *CraftingSchema_Material_MaterialType
- func (CraftingSchema_Material_MaterialType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CraftingSchema_Material_MaterialType) Number() protoreflect.EnumNumber
- func (x CraftingSchema_Material_MaterialType) String() string
- func (CraftingSchema_Material_MaterialType) Type() protoreflect.EnumType
- type CraftingSchema_Runnerdeprecated
- func (*CraftingSchema_Runner) Descriptor() ([]byte, []int)deprecated
- func (x *CraftingSchema_Runner) GetType() CraftingSchema_Runner_RunnerTypedeprecated
- func (*CraftingSchema_Runner) ProtoMessage()
- func (x *CraftingSchema_Runner) ProtoReflect() protoreflect.Message
- func (x *CraftingSchema_Runner) Reset()
- func (x *CraftingSchema_Runner) String() string
- type CraftingSchema_Runner_RunnerType
- func (CraftingSchema_Runner_RunnerType) Descriptor() protoreflect.EnumDescriptor
- func (x CraftingSchema_Runner_RunnerType) Enum() *CraftingSchema_Runner_RunnerType
- func (CraftingSchema_Runner_RunnerType) EnumDescriptor() ([]byte, []int)deprecated
- func (x CraftingSchema_Runner_RunnerType) Number() protoreflect.EnumNumber
- func (x CraftingSchema_Runner_RunnerType) String() string
- func (CraftingSchema_Runner_RunnerType) Type() protoreflect.EnumType
- type Metadata
- func (*Metadata) Descriptor() ([]byte, []int)deprecated
- func (x *Metadata) GetAnnotations() map[string]string
- func (x *Metadata) GetDescription() string
- func (x *Metadata) GetName() string
- func (x *Metadata) GetOrganization() string
- func (*Metadata) ProtoMessage()
- func (x *Metadata) ProtoReflect() protoreflect.Message
- func (x *Metadata) Reset()
- func (x *Metadata) String() string
- type Policies
- func (*Policies) Descriptor() ([]byte, []int)deprecated
- func (x *Policies) GetAttestation() []*PolicyAttachment
- func (x *Policies) GetMaterials() []*PolicyAttachment
- func (*Policies) ProtoMessage()
- func (x *Policies) ProtoReflect() protoreflect.Message
- func (x *Policies) Reset()
- func (x *Policies) String() string
- type Policy
- func (*Policy) Descriptor() ([]byte, []int)deprecated
- func (x *Policy) GetApiVersion() string
- func (x *Policy) GetKind() string
- func (x *Policy) GetMetadata() *Metadata
- func (x *Policy) GetSpec() *PolicySpec
- func (*Policy) ProtoMessage()
- func (x *Policy) ProtoReflect() protoreflect.Message
- func (x *Policy) Reset()
- func (x *Policy) String() string
- type PolicyAttachment
- func (*PolicyAttachment) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyAttachment) GetDisabled() bool
- func (x *PolicyAttachment) GetEmbedded() *Policy
- func (m *PolicyAttachment) GetPolicy() isPolicyAttachment_Policy
- func (x *PolicyAttachment) GetRef() string
- func (x *PolicyAttachment) GetRequirements() []string
- func (x *PolicyAttachment) GetSelector() *PolicyAttachment_MaterialSelector
- func (x *PolicyAttachment) GetWith() map[string]string
- func (*PolicyAttachment) ProtoMessage()
- func (x *PolicyAttachment) ProtoReflect() protoreflect.Message
- func (x *PolicyAttachment) Reset()
- func (x *PolicyAttachment) String() string
- type PolicyAttachment_Embedded
- type PolicyAttachment_MaterialSelector
- func (*PolicyAttachment_MaterialSelector) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyAttachment_MaterialSelector) GetName() string
- func (*PolicyAttachment_MaterialSelector) ProtoMessage()
- func (x *PolicyAttachment_MaterialSelector) ProtoReflect() protoreflect.Message
- func (x *PolicyAttachment_MaterialSelector) Reset()
- func (x *PolicyAttachment_MaterialSelector) String() string
- type PolicyAttachment_Ref
- type PolicyGroup
- func (*PolicyGroup) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyGroup) GetApiVersion() string
- func (x *PolicyGroup) GetKind() string
- func (x *PolicyGroup) GetMetadata() *Metadata
- func (x *PolicyGroup) GetSpec() *PolicyGroup_PolicyGroupSpec
- func (*PolicyGroup) ProtoMessage()
- func (x *PolicyGroup) ProtoReflect() protoreflect.Message
- func (x *PolicyGroup) Reset()
- func (x *PolicyGroup) String() string
- type PolicyGroupAttachment
- func (*PolicyGroupAttachment) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyGroupAttachment) GetRef() string
- func (x *PolicyGroupAttachment) GetWith() map[string]string
- func (*PolicyGroupAttachment) ProtoMessage()
- func (x *PolicyGroupAttachment) ProtoReflect() protoreflect.Message
- func (x *PolicyGroupAttachment) Reset()
- func (x *PolicyGroupAttachment) String() string
- type PolicyGroup_Material
- func (*PolicyGroup_Material) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyGroup_Material) GetName() string
- func (x *PolicyGroup_Material) GetOptional() bool
- func (x *PolicyGroup_Material) GetPolicies() []*PolicyAttachment
- func (x *PolicyGroup_Material) GetType() CraftingSchema_Material_MaterialType
- func (*PolicyGroup_Material) ProtoMessage()
- func (x *PolicyGroup_Material) ProtoReflect() protoreflect.Message
- func (x *PolicyGroup_Material) Reset()
- func (x *PolicyGroup_Material) String() string
- type PolicyGroup_PolicyGroupPolicies
- func (*PolicyGroup_PolicyGroupPolicies) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyGroup_PolicyGroupPolicies) GetAttestation() []*PolicyAttachment
- func (x *PolicyGroup_PolicyGroupPolicies) GetMaterials() []*PolicyGroup_Material
- func (*PolicyGroup_PolicyGroupPolicies) ProtoMessage()
- func (x *PolicyGroup_PolicyGroupPolicies) ProtoReflect() protoreflect.Message
- func (x *PolicyGroup_PolicyGroupPolicies) Reset()
- func (x *PolicyGroup_PolicyGroupPolicies) String() string
- type PolicyGroup_PolicyGroupSpec
- func (*PolicyGroup_PolicyGroupSpec) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyGroup_PolicyGroupSpec) GetInputs() []*PolicyInput
- func (x *PolicyGroup_PolicyGroupSpec) GetPolicies() *PolicyGroup_PolicyGroupPolicies
- func (*PolicyGroup_PolicyGroupSpec) ProtoMessage()
- func (x *PolicyGroup_PolicyGroupSpec) ProtoReflect() protoreflect.Message
- func (x *PolicyGroup_PolicyGroupSpec) Reset()
- func (x *PolicyGroup_PolicyGroupSpec) String() string
- type PolicyInput
- func (*PolicyInput) Descriptor() ([]byte, []int)deprecated
- func (x *PolicyInput) GetDefault() string
- func (x *PolicyInput) GetDescription() string
- func (x *PolicyInput) GetName() string
- func (x *PolicyInput) GetRequired() bool
- func (*PolicyInput) ProtoMessage()
- func (x *PolicyInput) ProtoReflect() protoreflect.Message
- func (x *PolicyInput) Reset()
- func (x *PolicyInput) String() string
- type PolicySpec
- func (*PolicySpec) Descriptor() ([]byte, []int)deprecated
- func (x *PolicySpec) GetAutoMatch() *AutoMatch
- func (x *PolicySpec) GetEmbedded() stringdeprecated
- func (x *PolicySpec) GetInputs() []*PolicyInput
- func (x *PolicySpec) GetPath() stringdeprecated
- func (x *PolicySpec) GetPolicies() []*PolicySpecV2
- func (m *PolicySpec) GetSource() isPolicySpec_Source
- func (x *PolicySpec) GetType() CraftingSchema_Material_MaterialTypedeprecated
- func (*PolicySpec) ProtoMessage()
- func (x *PolicySpec) ProtoReflect() protoreflect.Message
- func (x *PolicySpec) Reset()
- func (x *PolicySpec) String() string
- type PolicySpecV2
- func (*PolicySpecV2) Descriptor() ([]byte, []int)deprecated
- func (x *PolicySpecV2) GetEmbedded() string
- func (x *PolicySpecV2) GetKind() CraftingSchema_Material_MaterialType
- func (x *PolicySpecV2) GetPath() string
- func (m *PolicySpecV2) GetSource() isPolicySpecV2_Source
- func (*PolicySpecV2) ProtoMessage()
- func (x *PolicySpecV2) ProtoReflect() protoreflect.Message
- func (x *PolicySpecV2) Reset()
- func (x *PolicySpecV2) String() string
- type PolicySpecV2_Embedded
- type PolicySpecV2_Path
- type PolicySpec_Embedded
- type PolicySpec_Path
Constants ¶
This section is empty.
Variables ¶
var ( CraftingSchema_Runner_RunnerType_name = map[int32]string{ 0: "RUNNER_TYPE_UNSPECIFIED", 1: "GITHUB_ACTION", 2: "GITLAB_PIPELINE", 3: "AZURE_PIPELINE", 4: "JENKINS_JOB", 5: "CIRCLECI_BUILD", 6: "DAGGER_PIPELINE", 7: "TEAMCITY_PIPELINE", } CraftingSchema_Runner_RunnerType_value = map[string]int32{ "RUNNER_TYPE_UNSPECIFIED": 0, "GITHUB_ACTION": 1, "GITLAB_PIPELINE": 2, "AZURE_PIPELINE": 3, "JENKINS_JOB": 4, "CIRCLECI_BUILD": 5, "DAGGER_PIPELINE": 6, "TEAMCITY_PIPELINE": 7, } )
Enum value maps for CraftingSchema_Runner_RunnerType.
var ( CraftingSchema_Material_MaterialType_name = map[int32]string{ 0: "MATERIAL_TYPE_UNSPECIFIED", 1: "STRING", 2: "CONTAINER_IMAGE", 3: "ARTIFACT", 4: "SBOM_CYCLONEDX_JSON", 5: "SBOM_SPDX_JSON", 6: "JUNIT_XML", 7: "OPENVEX", 10: "HELM_CHART", 9: "SARIF", 11: "EVIDENCE", 12: "ATTESTATION", 8: "CSAF_VEX", 13: "CSAF_INFORMATIONAL_ADVISORY", 14: "CSAF_SECURITY_ADVISORY", 15: "CSAF_SECURITY_INCIDENT_RESPONSE", 16: "GITLAB_SECURITY_REPORT", 17: "ZAP_DAST_ZIP", 18: "BLACKDUCK_SCA_JSON", 19: "TWISTCLI_SCAN_JSON", 20: "GHAS_CODE_SCAN", 21: "GHAS_SECRET_SCAN", 22: "GHAS_DEPENDENCY_SCAN", 23: "JACOCO_XML", 24: "SLSA_PROVENANCE", 25: "CHAINLOOP_RUNNER_CONTEXT", } CraftingSchema_Material_MaterialType_value = map[string]int32{ "MATERIAL_TYPE_UNSPECIFIED": 0, "STRING": 1, "CONTAINER_IMAGE": 2, "ARTIFACT": 3, "SBOM_CYCLONEDX_JSON": 4, "SBOM_SPDX_JSON": 5, "JUNIT_XML": 6, "OPENVEX": 7, "HELM_CHART": 10, "SARIF": 9, "EVIDENCE": 11, "ATTESTATION": 12, "CSAF_VEX": 8, "CSAF_INFORMATIONAL_ADVISORY": 13, "CSAF_SECURITY_ADVISORY": 14, "CSAF_SECURITY_INCIDENT_RESPONSE": 15, "GITLAB_SECURITY_REPORT": 16, "ZAP_DAST_ZIP": 17, "BLACKDUCK_SCA_JSON": 18, "TWISTCLI_SCAN_JSON": 19, "GHAS_CODE_SCAN": 20, "GHAS_SECRET_SCAN": 21, "GHAS_DEPENDENCY_SCAN": 22, "JACOCO_XML": 23, "SLSA_PROVENANCE": 24, "CHAINLOOP_RUNNER_CONTEXT": 25, } )
Enum value maps for CraftingSchema_Material_MaterialType.
var CraftingMaterialInValidationOrder = []CraftingSchema_Material_MaterialType{ CraftingSchema_Material_OPENVEX, CraftingSchema_Material_SBOM_CYCLONEDX_JSON, CraftingSchema_Material_SBOM_SPDX_JSON, CraftingSchema_Material_CSAF_VEX, CraftingSchema_Material_CSAF_INFORMATIONAL_ADVISORY, CraftingSchema_Material_CSAF_SECURITY_ADVISORY, CraftingSchema_Material_CSAF_SECURITY_INCIDENT_RESPONSE, CraftingSchema_Material_GITLAB_SECURITY_REPORT, CraftingSchema_Material_JUNIT_XML, CraftingSchema_Material_JACOCO_XML, CraftingSchema_Material_HELM_CHART, CraftingSchema_Material_SARIF, CraftingSchema_Material_BLACKDUCK_SCA_JSON, CraftingSchema_Material_TWISTCLI_SCAN_JSON, CraftingSchema_Material_ZAP_DAST_ZIP, CraftingSchema_Material_SLSA_PROVENANCE, CraftingSchema_Material_CHAINLOOP_RUNNER_CONTEXT, CraftingSchema_Material_ATTESTATION, CraftingSchema_Material_CONTAINER_IMAGE, CraftingSchema_Material_ARTIFACT, CraftingSchema_Material_STRING, }
CraftingMaterialInValidationOrder all type of CraftingMaterial that are available for automatic detection. The order of the list is important as it defines the order of the detection process. Normally from most common one to the least common one and weaker validation method.
var File_workflowcontract_v1_crafting_schema_proto protoreflect.FileDescriptor
Functions ¶
func ListAvailableMaterialKind ¶ added in v0.89.0
func ListAvailableMaterialKind() []string
ListAvailableMaterialKind returns a list of available material kinds
func ValidatePolicyAttachmentRef ¶ added in v0.96.6
Types ¶
type Annotation ¶ added in v0.15.0
type Annotation struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"` // Single word optionally separated with _
// This value can be set in the contract or provided during the attestation
Value string `protobuf:"bytes,2,opt,name=value,proto3" json:"value,omitempty"`
// contains filtered or unexported fields
}
func (*Annotation) Descriptor
deprecated
added in
v0.15.0
func (*Annotation) Descriptor() ([]byte, []int)
Deprecated: Use Annotation.ProtoReflect.Descriptor instead.
func (*Annotation) GetName ¶ added in v0.15.0
func (x *Annotation) GetName() string
func (*Annotation) GetValue ¶ added in v0.15.0
func (x *Annotation) GetValue() string
func (*Annotation) ProtoMessage ¶ added in v0.15.0
func (*Annotation) ProtoMessage()
func (*Annotation) ProtoReflect ¶ added in v0.15.0
func (x *Annotation) ProtoReflect() protoreflect.Message
func (*Annotation) Reset ¶ added in v0.15.0
func (x *Annotation) Reset()
func (*Annotation) String ¶ added in v0.15.0
func (x *Annotation) String() string
type AutoMatch ¶ added in v1.44.0
type AutoMatch struct {
// Types that are assignable to Source:
//
// *AutoMatch_Path
// *AutoMatch_Embedded
Source isAutoMatch_Source `protobuf_oneof:"source"`
// contains filtered or unexported fields
}
Auto-matching policy specification
func (*AutoMatch) Descriptor
deprecated
added in
v1.44.0
func (*AutoMatch) GetEmbedded ¶ added in v1.44.0
func (*AutoMatch) ProtoMessage ¶ added in v1.44.0
func (*AutoMatch) ProtoMessage()
func (*AutoMatch) ProtoReflect ¶ added in v1.44.0
func (x *AutoMatch) ProtoReflect() protoreflect.Message
type AutoMatch_Embedded ¶ added in v1.44.0
type AutoMatch_Embedded struct {
// embedded source code (only Rego supported currently)
Embedded string `protobuf:"bytes,2,opt,name=embedded,proto3,oneof"`
}
type AutoMatch_Path ¶ added in v1.44.0
type AutoMatch_Path struct {
// path to a policy script. It might consist of a URI reference
Path string `protobuf:"bytes,1,opt,name=path,proto3,oneof"`
}
type CraftingSchema
deprecated
type CraftingSchema struct {
// Version of the schema, do not confuse with the revision of the content
//
// Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
SchemaVersion string `protobuf:"bytes,1,opt,name=schema_version,json=schemaVersion,proto3" json:"schema_version,omitempty"`
// Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
Materials []*CraftingSchema_Material `protobuf:"bytes,2,rep,name=materials,proto3" json:"materials,omitempty"`
// Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
EnvAllowList []string `protobuf:"bytes,3,rep,name=env_allow_list,json=envAllowList,proto3" json:"env_allow_list,omitempty"`
// Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
Runner *CraftingSchema_Runner `protobuf:"bytes,4,opt,name=runner,proto3" json:"runner,omitempty"`
// List of annotations that can be used to add metadata to the attestation
// this metadata can be used later on by the integrations engine to filter and interpolate data
// It works in addition to the annotations defined in the materials and the runner
//
// Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
Annotations []*Annotation `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty"`
// Policies to apply to this schema
//
// Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
Policies *Policies `protobuf:"bytes,6,opt,name=policies,proto3" json:"policies,omitempty"`
// Policy groups to apply to this schema
//
// Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
PolicyGroups []*PolicyGroupAttachment `protobuf:"bytes,7,rep,name=policy_groups,json=policyGroups,proto3" json:"policy_groups,omitempty"`
// contains filtered or unexported fields
}
Schema definition provided by the user to the tool that defines the schema of the workflowRun
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*CraftingSchema) Descriptor
deprecated
func (*CraftingSchema) Descriptor() ([]byte, []int)
Deprecated: Use CraftingSchema.ProtoReflect.Descriptor instead.
func (*CraftingSchema) GetAnnotations
deprecated
added in
v0.15.0
func (x *CraftingSchema) GetAnnotations() []*Annotation
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*CraftingSchema) GetEnvAllowList
deprecated
func (x *CraftingSchema) GetEnvAllowList() []string
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*CraftingSchema) GetMaterials
deprecated
func (x *CraftingSchema) GetMaterials() []*CraftingSchema_Material
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*CraftingSchema) GetPolicies
deprecated
added in
v0.93.4
func (x *CraftingSchema) GetPolicies() *Policies
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*CraftingSchema) GetPolicyGroups
deprecated
added in
v0.96.14
func (x *CraftingSchema) GetPolicyGroups() []*PolicyGroupAttachment
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*CraftingSchema) GetRunner
deprecated
func (x *CraftingSchema) GetRunner() *CraftingSchema_Runner
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*CraftingSchema) GetSchemaVersion
deprecated
func (x *CraftingSchema) GetSchemaVersion() string
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*CraftingSchema) ProtoMessage ¶
func (*CraftingSchema) ProtoMessage()
func (*CraftingSchema) ProtoReflect ¶
func (x *CraftingSchema) ProtoReflect() protoreflect.Message
func (*CraftingSchema) Reset ¶
func (x *CraftingSchema) Reset()
func (*CraftingSchema) String ¶
func (x *CraftingSchema) String() string
func (*CraftingSchema) ValidatePolicyAttachments ¶ added in v0.96.6
func (schema *CraftingSchema) ValidatePolicyAttachments() error
func (*CraftingSchema) ValidateUniqueMaterialName ¶
func (schema *CraftingSchema) ValidateUniqueMaterialName() error
ValidateUniqueMaterialName validates that only one material definition with the same ID is present in the schema
type CraftingSchemaV2 ¶ added in v1.48.0
type CraftingSchemaV2 struct {
ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
Spec *CraftingSchemaV2Spec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"`
// contains filtered or unexported fields
}
Schema definition provided by the user to the tool that defines the schema of the workflowRun
func (*CraftingSchemaV2) Descriptor
deprecated
added in
v1.48.0
func (*CraftingSchemaV2) Descriptor() ([]byte, []int)
Deprecated: Use CraftingSchemaV2.ProtoReflect.Descriptor instead.
func (*CraftingSchemaV2) GetApiVersion ¶ added in v1.48.0
func (x *CraftingSchemaV2) GetApiVersion() string
func (*CraftingSchemaV2) GetKind ¶ added in v1.48.0
func (x *CraftingSchemaV2) GetKind() string
func (*CraftingSchemaV2) GetMetadata ¶ added in v1.48.0
func (x *CraftingSchemaV2) GetMetadata() *Metadata
func (*CraftingSchemaV2) GetSpec ¶ added in v1.48.0
func (x *CraftingSchemaV2) GetSpec() *CraftingSchemaV2Spec
func (*CraftingSchemaV2) ProtoMessage ¶ added in v1.48.0
func (*CraftingSchemaV2) ProtoMessage()
func (*CraftingSchemaV2) ProtoReflect ¶ added in v1.48.0
func (x *CraftingSchemaV2) ProtoReflect() protoreflect.Message
func (*CraftingSchemaV2) Reset ¶ added in v1.48.0
func (x *CraftingSchemaV2) Reset()
func (*CraftingSchemaV2) String ¶ added in v1.48.0
func (x *CraftingSchemaV2) String() string
func (*CraftingSchemaV2) ToV1 ¶ added in v1.50.0
func (contract *CraftingSchemaV2) ToV1() *CraftingSchema
ToV1 converts a v2 contract to v1 format for backward compatibility This allows old CLIs to work with v2 contracts stored on the server
func (*CraftingSchemaV2) ValidatePolicyAttachments ¶ added in v1.50.0
func (contract *CraftingSchemaV2) ValidatePolicyAttachments() error
ValidatePolicyAttachments validates policy references in the schema
func (*CraftingSchemaV2) ValidateUniqueMaterialName ¶ added in v1.50.0
func (contract *CraftingSchemaV2) ValidateUniqueMaterialName() error
ValidateUniqueMaterialName validates that only one material definition with the same ID is present in the schema
type CraftingSchemaV2Spec ¶ added in v1.48.0
type CraftingSchemaV2Spec struct {
// Materials that are expected to be present in the attestation
Materials []*CraftingSchema_Material `protobuf:"bytes,1,rep,name=materials,proto3" json:"materials,omitempty"`
// List of environment variables that are allowed to be present in the attestation
EnvAllowList []string `protobuf:"bytes,2,rep,name=env_allow_list,json=envAllowList,proto3" json:"env_allow_list,omitempty"`
// Runner configuration for the contract
Runner *CraftingSchema_Runner `protobuf:"bytes,3,opt,name=runner,proto3" json:"runner,omitempty"`
// Policies to apply to this contract
Policies *Policies `protobuf:"bytes,4,opt,name=policies,proto3" json:"policies,omitempty"`
// Policy groups to apply to this contract
PolicyGroups []*PolicyGroupAttachment `protobuf:"bytes,5,rep,name=policy_groups,json=policyGroups,proto3" json:"policy_groups,omitempty"`
// contains filtered or unexported fields
}
func (*CraftingSchemaV2Spec) Descriptor
deprecated
added in
v1.48.0
func (*CraftingSchemaV2Spec) Descriptor() ([]byte, []int)
Deprecated: Use CraftingSchemaV2Spec.ProtoReflect.Descriptor instead.
func (*CraftingSchemaV2Spec) GetEnvAllowList ¶ added in v1.48.0
func (x *CraftingSchemaV2Spec) GetEnvAllowList() []string
func (*CraftingSchemaV2Spec) GetMaterials ¶ added in v1.48.0
func (x *CraftingSchemaV2Spec) GetMaterials() []*CraftingSchema_Material
func (*CraftingSchemaV2Spec) GetPolicies ¶ added in v1.48.0
func (x *CraftingSchemaV2Spec) GetPolicies() *Policies
func (*CraftingSchemaV2Spec) GetPolicyGroups ¶ added in v1.48.0
func (x *CraftingSchemaV2Spec) GetPolicyGroups() []*PolicyGroupAttachment
func (*CraftingSchemaV2Spec) GetRunner ¶ added in v1.48.0
func (x *CraftingSchemaV2Spec) GetRunner() *CraftingSchema_Runner
func (*CraftingSchemaV2Spec) ProtoMessage ¶ added in v1.48.0
func (*CraftingSchemaV2Spec) ProtoMessage()
func (*CraftingSchemaV2Spec) ProtoReflect ¶ added in v1.48.0
func (x *CraftingSchemaV2Spec) ProtoReflect() protoreflect.Message
func (*CraftingSchemaV2Spec) Reset ¶ added in v1.48.0
func (x *CraftingSchemaV2Spec) Reset()
func (*CraftingSchemaV2Spec) String ¶ added in v1.48.0
func (x *CraftingSchemaV2Spec) String() string
type CraftingSchema_Material
deprecated
type CraftingSchema_Material struct {
// Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
Type CraftingSchema_Material_MaterialType `protobuf:"varint,1,opt,name=type,proto3,enum=workflowcontract.v1.CraftingSchema_Material_MaterialType" json:"type,omitempty"`
// Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
// Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
Optional bool `protobuf:"varint,3,opt,name=optional,proto3" json:"optional,omitempty"`
// If a material is set as output it will get added to the subject in the statement
//
// Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
Output bool `protobuf:"varint,4,opt,name=output,proto3" json:"output,omitempty"`
// List of annotations that can be used to add metadata to the material
// this metadata can be used later on by the integrations engine to filter and interpolate data
//
// Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
Annotations []*Annotation `protobuf:"bytes,5,rep,name=annotations,proto3" json:"annotations,omitempty"`
// contains filtered or unexported fields
}
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*CraftingSchema_Material) Descriptor
deprecated
func (*CraftingSchema_Material) Descriptor() ([]byte, []int)
Deprecated: Use CraftingSchema_Material.ProtoReflect.Descriptor instead.
func (*CraftingSchema_Material) GetAnnotations
deprecated
added in
v0.15.0
func (x *CraftingSchema_Material) GetAnnotations() []*Annotation
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*CraftingSchema_Material) GetName
deprecated
func (x *CraftingSchema_Material) GetName() string
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*CraftingSchema_Material) GetOptional
deprecated
func (x *CraftingSchema_Material) GetOptional() bool
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*CraftingSchema_Material) GetOutput
deprecated
func (x *CraftingSchema_Material) GetOutput() bool
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*CraftingSchema_Material) GetType
deprecated
func (x *CraftingSchema_Material) GetType() CraftingSchema_Material_MaterialType
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*CraftingSchema_Material) ProtoMessage ¶
func (*CraftingSchema_Material) ProtoMessage()
func (*CraftingSchema_Material) ProtoReflect ¶
func (x *CraftingSchema_Material) ProtoReflect() protoreflect.Message
func (*CraftingSchema_Material) Reset ¶
func (x *CraftingSchema_Material) Reset()
func (*CraftingSchema_Material) String ¶
func (x *CraftingSchema_Material) String() string
type CraftingSchema_Material_MaterialType ¶
type CraftingSchema_Material_MaterialType int32
const ( CraftingSchema_Material_MATERIAL_TYPE_UNSPECIFIED CraftingSchema_Material_MaterialType = 0 CraftingSchema_Material_STRING CraftingSchema_Material_MaterialType = 1 CraftingSchema_Material_CONTAINER_IMAGE CraftingSchema_Material_MaterialType = 2 CraftingSchema_Material_ARTIFACT CraftingSchema_Material_MaterialType = 3 CraftingSchema_Material_SBOM_CYCLONEDX_JSON CraftingSchema_Material_MaterialType = 4 CraftingSchema_Material_SBOM_SPDX_JSON CraftingSchema_Material_MaterialType = 5 CraftingSchema_Material_JUNIT_XML CraftingSchema_Material_MaterialType = 6 // https://github.com/openvex/spec CraftingSchema_Material_OPENVEX CraftingSchema_Material_MaterialType = 7 // Static analysis output format // https://github.com/microsoft/sarif-tutorials/blob/main/docs/1-Introduction.md CraftingSchema_Material_HELM_CHART CraftingSchema_Material_MaterialType = 10 CraftingSchema_Material_SARIF CraftingSchema_Material_MaterialType = 9 // Pieces of evidences represent generic, additional context that don't fit // into one of the well known material types. For example, a custom approval report (in json), ... CraftingSchema_Material_EVIDENCE CraftingSchema_Material_MaterialType = 11 // Chainloop attestation coming from a different workflow. CraftingSchema_Material_ATTESTATION CraftingSchema_Material_MaterialType = 12 // https://docs.oasis-open.org/csaf/csaf/v2.0/cs03/csaf-v2.0-cs03.html CraftingSchema_Material_CSAF_VEX CraftingSchema_Material_MaterialType = 8 CraftingSchema_Material_CSAF_INFORMATIONAL_ADVISORY CraftingSchema_Material_MaterialType = 13 CraftingSchema_Material_CSAF_SECURITY_ADVISORY CraftingSchema_Material_MaterialType = 14 CraftingSchema_Material_CSAF_SECURITY_INCIDENT_RESPONSE CraftingSchema_Material_MaterialType = 15 // Gitlab Application Security Reports https://docs.gitlab.com/ee/user/application_security/ CraftingSchema_Material_GITLAB_SECURITY_REPORT CraftingSchema_Material_MaterialType = 16 CraftingSchema_Material_ZAP_DAST_ZIP CraftingSchema_Material_MaterialType = 17 CraftingSchema_Material_BLACKDUCK_SCA_JSON CraftingSchema_Material_MaterialType = 18 // Twistcli scan output in json format: https://docs.prismacloud.io/en/compute-edition/30/admin-guide/tools/twistcli-scan-images CraftingSchema_Material_TWISTCLI_SCAN_JSON CraftingSchema_Material_MaterialType = 19 // GitHub Advanced Security API reports // https://docs.github.com/en/rest/code-scanning/code-scanning?apiVersion=2022-11-28 CraftingSchema_Material_GHAS_CODE_SCAN CraftingSchema_Material_MaterialType = 20 // https://docs.github.com/en/rest/secret-scanning/secret-scanning?apiVersion=2022-11-28 CraftingSchema_Material_GHAS_SECRET_SCAN CraftingSchema_Material_MaterialType = 21 // https://docs.github.com/en/rest/dependabot/alerts?apiVersion=2022-11-28 CraftingSchema_Material_GHAS_DEPENDENCY_SCAN CraftingSchema_Material_MaterialType = 22 // Jacoco coverage reports https://www.jacoco.org/userdoc/importexport.html CraftingSchema_Material_JACOCO_XML CraftingSchema_Material_MaterialType = 23 // SLSA Provenance in the form of Sigstore Bundle // https://slsa.dev/spec/v1.0/provenance // https://docs.sigstore.dev/about/bundle/ CraftingSchema_Material_SLSA_PROVENANCE CraftingSchema_Material_MaterialType = 24 // The Chainloop CLI plugin for runner context CraftingSchema_Material_CHAINLOOP_RUNNER_CONTEXT CraftingSchema_Material_MaterialType = 25 )
func (CraftingSchema_Material_MaterialType) Descriptor ¶
func (CraftingSchema_Material_MaterialType) Descriptor() protoreflect.EnumDescriptor
func (CraftingSchema_Material_MaterialType) Enum ¶
func (x CraftingSchema_Material_MaterialType) Enum() *CraftingSchema_Material_MaterialType
func (CraftingSchema_Material_MaterialType) EnumDescriptor
deprecated
func (CraftingSchema_Material_MaterialType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CraftingSchema_Material_MaterialType.Descriptor instead.
func (CraftingSchema_Material_MaterialType) Number ¶
func (x CraftingSchema_Material_MaterialType) Number() protoreflect.EnumNumber
func (CraftingSchema_Material_MaterialType) String ¶
func (x CraftingSchema_Material_MaterialType) String() string
func (CraftingSchema_Material_MaterialType) Type ¶
func (CraftingSchema_Material_MaterialType) Type() protoreflect.EnumType
type CraftingSchema_Runner
deprecated
type CraftingSchema_Runner struct {
// Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
Type CraftingSchema_Runner_RunnerType `protobuf:"varint,1,opt,name=type,proto3,enum=workflowcontract.v1.CraftingSchema_Runner_RunnerType" json:"type,omitempty"`
// contains filtered or unexported fields
}
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*CraftingSchema_Runner) Descriptor
deprecated
func (*CraftingSchema_Runner) Descriptor() ([]byte, []int)
Deprecated: Use CraftingSchema_Runner.ProtoReflect.Descriptor instead.
func (*CraftingSchema_Runner) GetType
deprecated
func (x *CraftingSchema_Runner) GetType() CraftingSchema_Runner_RunnerType
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*CraftingSchema_Runner) ProtoMessage ¶
func (*CraftingSchema_Runner) ProtoMessage()
func (*CraftingSchema_Runner) ProtoReflect ¶
func (x *CraftingSchema_Runner) ProtoReflect() protoreflect.Message
func (*CraftingSchema_Runner) Reset ¶
func (x *CraftingSchema_Runner) Reset()
func (*CraftingSchema_Runner) String ¶
func (x *CraftingSchema_Runner) String() string
type CraftingSchema_Runner_RunnerType ¶
type CraftingSchema_Runner_RunnerType int32
const ( CraftingSchema_Runner_RUNNER_TYPE_UNSPECIFIED CraftingSchema_Runner_RunnerType = 0 CraftingSchema_Runner_GITHUB_ACTION CraftingSchema_Runner_RunnerType = 1 CraftingSchema_Runner_GITLAB_PIPELINE CraftingSchema_Runner_RunnerType = 2 CraftingSchema_Runner_AZURE_PIPELINE CraftingSchema_Runner_RunnerType = 3 CraftingSchema_Runner_JENKINS_JOB CraftingSchema_Runner_RunnerType = 4 CraftingSchema_Runner_CIRCLECI_BUILD CraftingSchema_Runner_RunnerType = 5 CraftingSchema_Runner_DAGGER_PIPELINE CraftingSchema_Runner_RunnerType = 6 CraftingSchema_Runner_TEAMCITY_PIPELINE CraftingSchema_Runner_RunnerType = 7 )
func (CraftingSchema_Runner_RunnerType) Descriptor ¶
func (CraftingSchema_Runner_RunnerType) Descriptor() protoreflect.EnumDescriptor
func (CraftingSchema_Runner_RunnerType) Enum ¶
func (x CraftingSchema_Runner_RunnerType) Enum() *CraftingSchema_Runner_RunnerType
func (CraftingSchema_Runner_RunnerType) EnumDescriptor
deprecated
func (CraftingSchema_Runner_RunnerType) EnumDescriptor() ([]byte, []int)
Deprecated: Use CraftingSchema_Runner_RunnerType.Descriptor instead.
func (CraftingSchema_Runner_RunnerType) Number ¶
func (x CraftingSchema_Runner_RunnerType) Number() protoreflect.EnumNumber
func (CraftingSchema_Runner_RunnerType) String ¶
func (x CraftingSchema_Runner_RunnerType) String() string
func (CraftingSchema_Runner_RunnerType) Type ¶
func (CraftingSchema_Runner_RunnerType) Type() protoreflect.EnumType
type Metadata ¶ added in v0.93.4
type Metadata struct {
// the name of the policy
Name string `protobuf:"bytes,3,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,4,opt,name=description,proto3" json:"description,omitempty"`
Annotations map[string]string `` /* 163-byte string literal not displayed */
Organization *string `protobuf:"bytes,6,opt,name=organization,proto3,oneof" json:"organization,omitempty"`
// contains filtered or unexported fields
}
func (*Metadata) Descriptor
deprecated
added in
v0.93.4
func (*Metadata) GetAnnotations ¶ added in v0.94.3
func (*Metadata) GetDescription ¶ added in v0.94.3
func (*Metadata) GetOrganization ¶ added in v1.48.0
func (*Metadata) ProtoMessage ¶ added in v0.93.4
func (*Metadata) ProtoMessage()
func (*Metadata) ProtoReflect ¶ added in v0.93.4
func (x *Metadata) ProtoReflect() protoreflect.Message
type Policies ¶ added in v0.93.8
type Policies struct {
// Policies to be applied to materials
Materials []*PolicyAttachment `protobuf:"bytes,1,rep,name=materials,proto3" json:"materials,omitempty"`
// Policies to be applied to attestation metadata
Attestation []*PolicyAttachment `protobuf:"bytes,2,rep,name=attestation,proto3" json:"attestation,omitempty"`
// contains filtered or unexported fields
}
func (*Policies) Descriptor
deprecated
added in
v0.93.8
func (*Policies) GetAttestation ¶ added in v0.93.8
func (x *Policies) GetAttestation() []*PolicyAttachment
func (*Policies) GetMaterials ¶ added in v0.93.8
func (x *Policies) GetMaterials() []*PolicyAttachment
func (*Policies) ProtoMessage ¶ added in v0.93.8
func (*Policies) ProtoMessage()
func (*Policies) ProtoReflect ¶ added in v0.93.8
func (x *Policies) ProtoReflect() protoreflect.Message
type Policy ¶ added in v0.93.4
type Policy struct {
ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
Spec *PolicySpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"`
// contains filtered or unexported fields
}
Represents a policy to be applied to a material or attestation
func (*Policy) Descriptor
deprecated
added in
v0.93.4
func (*Policy) GetApiVersion ¶ added in v0.93.4
func (*Policy) GetMetadata ¶ added in v0.93.4
func (*Policy) GetSpec ¶ added in v0.93.4
func (x *Policy) GetSpec() *PolicySpec
func (*Policy) ProtoMessage ¶ added in v0.93.4
func (*Policy) ProtoMessage()
func (*Policy) ProtoReflect ¶ added in v0.93.4
func (x *Policy) ProtoReflect() protoreflect.Message
type PolicyAttachment ¶ added in v0.93.4
type PolicyAttachment struct {
// Types that are assignable to Policy:
//
// *PolicyAttachment_Ref
// *PolicyAttachment_Embedded
Policy isPolicyAttachment_Policy `protobuf_oneof:"policy"`
// rules to select a material or materials to be validated by the policy.
// If none provided, the whole statement will be injected to the policy
Selector *PolicyAttachment_MaterialSelector `protobuf:"bytes,3,opt,name=selector,proto3" json:"selector,omitempty"`
// set to true to disable this rule
Disabled bool `protobuf:"varint,4,opt,name=disabled,proto3" json:"disabled,omitempty"`
// optional arguments for policies. Multivalued arguments can be set through multiline strings or comma separated values. It will be
// parsed and passed as an array value to the policy engine.
// with:
//
// user: john
// users: john, sarah
// licenses: |
// AGPL-1.0
// AGPL-3.0
With map[string]string `` /* 149-byte string literal not displayed */
// List of requirements this policy contributes to satisfy
Requirements []string `protobuf:"bytes,6,rep,name=requirements,proto3" json:"requirements,omitempty"`
// contains filtered or unexported fields
}
A policy to be applied to this contract
func (*PolicyAttachment) Descriptor
deprecated
added in
v0.93.4
func (*PolicyAttachment) Descriptor() ([]byte, []int)
Deprecated: Use PolicyAttachment.ProtoReflect.Descriptor instead.
func (*PolicyAttachment) GetDisabled ¶ added in v0.93.4
func (x *PolicyAttachment) GetDisabled() bool
func (*PolicyAttachment) GetEmbedded ¶ added in v0.93.8
func (x *PolicyAttachment) GetEmbedded() *Policy
func (*PolicyAttachment) GetPolicy ¶ added in v0.93.4
func (m *PolicyAttachment) GetPolicy() isPolicyAttachment_Policy
func (*PolicyAttachment) GetRef ¶ added in v0.93.4
func (x *PolicyAttachment) GetRef() string
func (*PolicyAttachment) GetRequirements ¶ added in v0.112.0
func (x *PolicyAttachment) GetRequirements() []string
func (*PolicyAttachment) GetSelector ¶ added in v0.93.4
func (x *PolicyAttachment) GetSelector() *PolicyAttachment_MaterialSelector
func (*PolicyAttachment) GetWith ¶ added in v0.93.4
func (x *PolicyAttachment) GetWith() map[string]string
func (*PolicyAttachment) ProtoMessage ¶ added in v0.93.4
func (*PolicyAttachment) ProtoMessage()
func (*PolicyAttachment) ProtoReflect ¶ added in v0.93.4
func (x *PolicyAttachment) ProtoReflect() protoreflect.Message
func (*PolicyAttachment) Reset ¶ added in v0.93.4
func (x *PolicyAttachment) Reset()
func (*PolicyAttachment) String ¶ added in v0.93.4
func (x *PolicyAttachment) String() string
type PolicyAttachment_Embedded ¶ added in v0.93.8
type PolicyAttachment_Embedded struct {
// meant to be used to embed the policy in the contract
Embedded *Policy `protobuf:"bytes,2,opt,name=embedded,proto3,oneof"`
}
type PolicyAttachment_MaterialSelector ¶ added in v0.93.4
type PolicyAttachment_MaterialSelector struct {
// material name
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
// contains filtered or unexported fields
}
func (*PolicyAttachment_MaterialSelector) Descriptor
deprecated
added in
v0.93.4
func (*PolicyAttachment_MaterialSelector) Descriptor() ([]byte, []int)
Deprecated: Use PolicyAttachment_MaterialSelector.ProtoReflect.Descriptor instead.
func (*PolicyAttachment_MaterialSelector) GetName ¶ added in v0.93.4
func (x *PolicyAttachment_MaterialSelector) GetName() string
func (*PolicyAttachment_MaterialSelector) ProtoMessage ¶ added in v0.93.4
func (*PolicyAttachment_MaterialSelector) ProtoMessage()
func (*PolicyAttachment_MaterialSelector) ProtoReflect ¶ added in v0.93.4
func (x *PolicyAttachment_MaterialSelector) ProtoReflect() protoreflect.Message
func (*PolicyAttachment_MaterialSelector) Reset ¶ added in v0.93.4
func (x *PolicyAttachment_MaterialSelector) Reset()
func (*PolicyAttachment_MaterialSelector) String ¶ added in v0.93.4
func (x *PolicyAttachment_MaterialSelector) String() string
type PolicyAttachment_Ref ¶ added in v0.93.4
type PolicyAttachment_Ref struct {
// policy reference, it might be in URI format.
Ref string `protobuf:"bytes,1,opt,name=ref,proto3,oneof"`
}
type PolicyGroup ¶ added in v0.96.14
type PolicyGroup struct {
ApiVersion string `protobuf:"bytes,1,opt,name=api_version,json=apiVersion,proto3" json:"api_version,omitempty"`
Kind string `protobuf:"bytes,2,opt,name=kind,proto3" json:"kind,omitempty"`
Metadata *Metadata `protobuf:"bytes,3,opt,name=metadata,proto3" json:"metadata,omitempty"`
Spec *PolicyGroup_PolicyGroupSpec `protobuf:"bytes,4,opt,name=spec,proto3" json:"spec,omitempty"`
// contains filtered or unexported fields
}
Represents a group or policies
func (*PolicyGroup) Descriptor
deprecated
added in
v0.96.14
func (*PolicyGroup) Descriptor() ([]byte, []int)
Deprecated: Use PolicyGroup.ProtoReflect.Descriptor instead.
func (*PolicyGroup) GetApiVersion ¶ added in v0.96.14
func (x *PolicyGroup) GetApiVersion() string
func (*PolicyGroup) GetKind ¶ added in v0.96.14
func (x *PolicyGroup) GetKind() string
func (*PolicyGroup) GetMetadata ¶ added in v0.96.14
func (x *PolicyGroup) GetMetadata() *Metadata
func (*PolicyGroup) GetSpec ¶ added in v0.96.14
func (x *PolicyGroup) GetSpec() *PolicyGroup_PolicyGroupSpec
func (*PolicyGroup) ProtoMessage ¶ added in v0.96.14
func (*PolicyGroup) ProtoMessage()
func (*PolicyGroup) ProtoReflect ¶ added in v0.96.14
func (x *PolicyGroup) ProtoReflect() protoreflect.Message
func (*PolicyGroup) Reset ¶ added in v0.96.14
func (x *PolicyGroup) Reset()
func (*PolicyGroup) String ¶ added in v0.96.14
func (x *PolicyGroup) String() string
type PolicyGroupAttachment ¶ added in v0.96.14
type PolicyGroupAttachment struct {
// Group reference, it might be an URL or a provider reference
Ref string `protobuf:"bytes,1,opt,name=ref,proto3" json:"ref,omitempty"`
// group arguments
With map[string]string `` /* 149-byte string literal not displayed */
// contains filtered or unexported fields
}
Represents a group attachment in a contract
func (*PolicyGroupAttachment) Descriptor
deprecated
added in
v0.96.14
func (*PolicyGroupAttachment) Descriptor() ([]byte, []int)
Deprecated: Use PolicyGroupAttachment.ProtoReflect.Descriptor instead.
func (*PolicyGroupAttachment) GetRef ¶ added in v0.96.14
func (x *PolicyGroupAttachment) GetRef() string
func (*PolicyGroupAttachment) GetWith ¶ added in v0.100.0
func (x *PolicyGroupAttachment) GetWith() map[string]string
func (*PolicyGroupAttachment) ProtoMessage ¶ added in v0.96.14
func (*PolicyGroupAttachment) ProtoMessage()
func (*PolicyGroupAttachment) ProtoReflect ¶ added in v0.96.14
func (x *PolicyGroupAttachment) ProtoReflect() protoreflect.Message
func (*PolicyGroupAttachment) Reset ¶ added in v0.96.14
func (x *PolicyGroupAttachment) Reset()
func (*PolicyGroupAttachment) String ¶ added in v0.96.14
func (x *PolicyGroupAttachment) String() string
type PolicyGroup_Material ¶ added in v0.104.0
type PolicyGroup_Material struct {
Type CraftingSchema_Material_MaterialType `protobuf:"varint,1,opt,name=type,proto3,enum=workflowcontract.v1.CraftingSchema_Material_MaterialType" json:"type,omitempty"`
// Free form name, as we support placeholders eg `{{ inputs.input_name }}`
// If no name is provided, material won't be enforced and will apply policies if `type` matches
Name string `protobuf:"bytes,2,opt,name=name,proto3" json:"name,omitempty"`
Optional bool `protobuf:"varint,3,opt,name=optional,proto3" json:"optional,omitempty"`
// Policies to be applied to this material
Policies []*PolicyAttachment `protobuf:"bytes,6,rep,name=policies,proto3" json:"policies,omitempty"`
// contains filtered or unexported fields
}
Policy group materials
func (*PolicyGroup_Material) Descriptor
deprecated
added in
v0.104.0
func (*PolicyGroup_Material) Descriptor() ([]byte, []int)
Deprecated: Use PolicyGroup_Material.ProtoReflect.Descriptor instead.
func (*PolicyGroup_Material) GetName ¶ added in v0.104.0
func (x *PolicyGroup_Material) GetName() string
func (*PolicyGroup_Material) GetOptional ¶ added in v0.104.0
func (x *PolicyGroup_Material) GetOptional() bool
func (*PolicyGroup_Material) GetPolicies ¶ added in v0.104.0
func (x *PolicyGroup_Material) GetPolicies() []*PolicyAttachment
func (*PolicyGroup_Material) GetType ¶ added in v0.104.0
func (x *PolicyGroup_Material) GetType() CraftingSchema_Material_MaterialType
func (*PolicyGroup_Material) ProtoMessage ¶ added in v0.104.0
func (*PolicyGroup_Material) ProtoMessage()
func (*PolicyGroup_Material) ProtoReflect ¶ added in v0.104.0
func (x *PolicyGroup_Material) ProtoReflect() protoreflect.Message
func (*PolicyGroup_Material) Reset ¶ added in v0.104.0
func (x *PolicyGroup_Material) Reset()
func (*PolicyGroup_Material) String ¶ added in v0.104.0
func (x *PolicyGroup_Material) String() string
type PolicyGroup_PolicyGroupPolicies ¶ added in v0.96.14
type PolicyGroup_PolicyGroupPolicies struct {
Materials []*PolicyGroup_Material `protobuf:"bytes,1,rep,name=materials,proto3" json:"materials,omitempty"`
Attestation []*PolicyAttachment `protobuf:"bytes,2,rep,name=attestation,proto3" json:"attestation,omitempty"`
// contains filtered or unexported fields
}
func (*PolicyGroup_PolicyGroupPolicies) Descriptor
deprecated
added in
v0.96.14
func (*PolicyGroup_PolicyGroupPolicies) Descriptor() ([]byte, []int)
Deprecated: Use PolicyGroup_PolicyGroupPolicies.ProtoReflect.Descriptor instead.
func (*PolicyGroup_PolicyGroupPolicies) GetAttestation ¶ added in v0.96.14
func (x *PolicyGroup_PolicyGroupPolicies) GetAttestation() []*PolicyAttachment
func (*PolicyGroup_PolicyGroupPolicies) GetMaterials ¶ added in v0.96.14
func (x *PolicyGroup_PolicyGroupPolicies) GetMaterials() []*PolicyGroup_Material
func (*PolicyGroup_PolicyGroupPolicies) ProtoMessage ¶ added in v0.96.14
func (*PolicyGroup_PolicyGroupPolicies) ProtoMessage()
func (*PolicyGroup_PolicyGroupPolicies) ProtoReflect ¶ added in v0.96.14
func (x *PolicyGroup_PolicyGroupPolicies) ProtoReflect() protoreflect.Message
func (*PolicyGroup_PolicyGroupPolicies) Reset ¶ added in v0.96.14
func (x *PolicyGroup_PolicyGroupPolicies) Reset()
func (*PolicyGroup_PolicyGroupPolicies) String ¶ added in v0.96.14
func (x *PolicyGroup_PolicyGroupPolicies) String() string
type PolicyGroup_PolicyGroupSpec ¶ added in v0.96.14
type PolicyGroup_PolicyGroupSpec struct {
Policies *PolicyGroup_PolicyGroupPolicies `protobuf:"bytes,1,opt,name=policies,proto3" json:"policies,omitempty"`
Inputs []*PolicyInput `protobuf:"bytes,2,rep,name=inputs,proto3" json:"inputs,omitempty"`
// contains filtered or unexported fields
}
func (*PolicyGroup_PolicyGroupSpec) Descriptor
deprecated
added in
v0.96.14
func (*PolicyGroup_PolicyGroupSpec) Descriptor() ([]byte, []int)
Deprecated: Use PolicyGroup_PolicyGroupSpec.ProtoReflect.Descriptor instead.
func (*PolicyGroup_PolicyGroupSpec) GetInputs ¶ added in v0.100.0
func (x *PolicyGroup_PolicyGroupSpec) GetInputs() []*PolicyInput
func (*PolicyGroup_PolicyGroupSpec) GetPolicies ¶ added in v0.96.14
func (x *PolicyGroup_PolicyGroupSpec) GetPolicies() *PolicyGroup_PolicyGroupPolicies
func (*PolicyGroup_PolicyGroupSpec) ProtoMessage ¶ added in v0.96.14
func (*PolicyGroup_PolicyGroupSpec) ProtoMessage()
func (*PolicyGroup_PolicyGroupSpec) ProtoReflect ¶ added in v0.96.14
func (x *PolicyGroup_PolicyGroupSpec) ProtoReflect() protoreflect.Message
func (*PolicyGroup_PolicyGroupSpec) Reset ¶ added in v0.96.14
func (x *PolicyGroup_PolicyGroupSpec) Reset()
func (*PolicyGroup_PolicyGroupSpec) String ¶ added in v0.96.14
func (x *PolicyGroup_PolicyGroupSpec) String() string
type PolicyInput ¶ added in v0.100.0
type PolicyInput struct {
Name string `protobuf:"bytes,1,opt,name=name,proto3" json:"name,omitempty"`
Description string `protobuf:"bytes,2,opt,name=description,proto3" json:"description,omitempty"`
Required bool `protobuf:"varint,3,opt,name=required,proto3" json:"required,omitempty"`
Default string `protobuf:"bytes,4,opt,name=default,proto3" json:"default,omitempty"`
// contains filtered or unexported fields
}
func (*PolicyInput) Descriptor
deprecated
added in
v0.100.0
func (*PolicyInput) Descriptor() ([]byte, []int)
Deprecated: Use PolicyInput.ProtoReflect.Descriptor instead.
func (*PolicyInput) GetDefault ¶ added in v0.100.0
func (x *PolicyInput) GetDefault() string
func (*PolicyInput) GetDescription ¶ added in v0.100.0
func (x *PolicyInput) GetDescription() string
func (*PolicyInput) GetName ¶ added in v0.100.0
func (x *PolicyInput) GetName() string
func (*PolicyInput) GetRequired ¶ added in v0.100.0
func (x *PolicyInput) GetRequired() bool
func (*PolicyInput) ProtoMessage ¶ added in v0.100.0
func (*PolicyInput) ProtoMessage()
func (*PolicyInput) ProtoReflect ¶ added in v0.100.0
func (x *PolicyInput) ProtoReflect() protoreflect.Message
func (*PolicyInput) Reset ¶ added in v0.100.0
func (x *PolicyInput) Reset()
func (*PolicyInput) String ¶ added in v0.100.0
func (x *PolicyInput) String() string
type PolicySpec ¶ added in v0.93.4
type PolicySpec struct {
// Types that are assignable to Source:
//
// *PolicySpec_Path
// *PolicySpec_Embedded
Source isPolicySpec_Source `protobuf_oneof:"source"`
// if set, it will match any material supported by Chainloop
// except those not having a direct schema (STRING, ARTIFACT, EVIDENCE), since their format cannot be guessed by the crafter.
// CONTAINER, HELM_CHART are also excluded, but we might implement custom policies for them in the future.
//
// Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
Type CraftingSchema_Material_MaterialType `protobuf:"varint,3,opt,name=type,proto3,enum=workflowcontract.v1.CraftingSchema_Material_MaterialType" json:"type,omitempty"`
Policies []*PolicySpecV2 `protobuf:"bytes,4,rep,name=policies,proto3" json:"policies,omitempty"`
// Describe the supported inputs
Inputs []*PolicyInput `protobuf:"bytes,5,rep,name=inputs,proto3" json:"inputs,omitempty"`
AutoMatch *AutoMatch `protobuf:"bytes,6,opt,name=auto_match,json=autoMatch,proto3" json:"auto_match,omitempty"`
// contains filtered or unexported fields
}
func (*PolicySpec) Descriptor
deprecated
added in
v0.93.4
func (*PolicySpec) Descriptor() ([]byte, []int)
Deprecated: Use PolicySpec.ProtoReflect.Descriptor instead.
func (*PolicySpec) GetAutoMatch ¶ added in v1.44.0
func (x *PolicySpec) GetAutoMatch() *AutoMatch
func (*PolicySpec) GetEmbedded
deprecated
added in
v0.93.4
func (x *PolicySpec) GetEmbedded() string
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*PolicySpec) GetInputs ¶ added in v0.100.0
func (x *PolicySpec) GetInputs() []*PolicyInput
func (*PolicySpec) GetPath
deprecated
added in
v0.93.4
func (x *PolicySpec) GetPath() string
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*PolicySpec) GetPolicies ¶ added in v0.96.9
func (x *PolicySpec) GetPolicies() []*PolicySpecV2
func (*PolicySpec) GetSource ¶ added in v0.93.4
func (m *PolicySpec) GetSource() isPolicySpec_Source
func (*PolicySpec) GetType
deprecated
added in
v0.93.8
func (x *PolicySpec) GetType() CraftingSchema_Material_MaterialType
Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
func (*PolicySpec) ProtoMessage ¶ added in v0.93.4
func (*PolicySpec) ProtoMessage()
func (*PolicySpec) ProtoReflect ¶ added in v0.93.4
func (x *PolicySpec) ProtoReflect() protoreflect.Message
func (*PolicySpec) Reset ¶ added in v0.93.4
func (x *PolicySpec) Reset()
func (*PolicySpec) String ¶ added in v0.93.4
func (x *PolicySpec) String() string
type PolicySpecV2 ¶ added in v0.96.9
type PolicySpecV2 struct {
// Types that are assignable to Source:
//
// *PolicySpecV2_Path
// *PolicySpecV2_Embedded
Source isPolicySpecV2_Source `protobuf_oneof:"source"`
// if set, it will match any material supported by Chainloop
Kind CraftingSchema_Material_MaterialType `protobuf:"varint,3,opt,name=kind,proto3,enum=workflowcontract.v1.CraftingSchema_Material_MaterialType" json:"kind,omitempty"`
// contains filtered or unexported fields
}
func (*PolicySpecV2) Descriptor
deprecated
added in
v0.96.9
func (*PolicySpecV2) Descriptor() ([]byte, []int)
Deprecated: Use PolicySpecV2.ProtoReflect.Descriptor instead.
func (*PolicySpecV2) GetEmbedded ¶ added in v0.96.9
func (x *PolicySpecV2) GetEmbedded() string
func (*PolicySpecV2) GetKind ¶ added in v0.96.9
func (x *PolicySpecV2) GetKind() CraftingSchema_Material_MaterialType
func (*PolicySpecV2) GetPath ¶ added in v0.96.9
func (x *PolicySpecV2) GetPath() string
func (*PolicySpecV2) GetSource ¶ added in v0.96.9
func (m *PolicySpecV2) GetSource() isPolicySpecV2_Source
func (*PolicySpecV2) ProtoMessage ¶ added in v0.96.9
func (*PolicySpecV2) ProtoMessage()
func (*PolicySpecV2) ProtoReflect ¶ added in v0.96.9
func (x *PolicySpecV2) ProtoReflect() protoreflect.Message
func (*PolicySpecV2) Reset ¶ added in v0.96.9
func (x *PolicySpecV2) Reset()
func (*PolicySpecV2) String ¶ added in v0.96.9
func (x *PolicySpecV2) String() string
type PolicySpecV2_Embedded ¶ added in v0.96.9
type PolicySpecV2_Embedded struct {
// embedded source code (only Rego supported currently)
Embedded string `protobuf:"bytes,2,opt,name=embedded,proto3,oneof"`
}
type PolicySpecV2_Path ¶ added in v0.96.9
type PolicySpecV2_Path struct {
// path to a policy script. It might consist of a URI reference
Path string `protobuf:"bytes,1,opt,name=path,proto3,oneof"`
}
type PolicySpec_Embedded ¶ added in v0.93.4
type PolicySpec_Embedded struct {
// embedded source code (only Rego supported currently)
//
// Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
Embedded string `protobuf:"bytes,2,opt,name=embedded,proto3,oneof"`
}
type PolicySpec_Path ¶ added in v0.93.4
type PolicySpec_Path struct {
// path to a policy script. It might consist of a URI reference
//
// Deprecated: Marked as deprecated in workflowcontract/v1/crafting_schema.proto.
Path string `protobuf:"bytes,1,opt,name=path,proto3,oneof"`
}