Loading...
Loading...
Compare original and translation side by side
Call MCP tool: harness_list
Parameters:
resource_type: "project"
org_id: "<organization>"Call MCP tool: harness_list
Parameters:
resource_type: "project"
org_id: "<organization>"Call MCP tool: harness_create
Parameters:
resource_type: "policy"
org_id: "<organization>"
project_id: "<project>"
body:
name: "supply-chain-enforcement"
identifier: "supply_chain_enforcement"
rego: |
package harness.supply_chain
deny[msg] {
not input.artifact.signed
msg := "Artifact must be signed with Cosign before deployment"
}
deny[msg] {
not input.artifact.sbom_attached
msg := "SBOM must be generated and attached to artifact"
}Call MCP tool: harness_create
Parameters:
resource_type: "policy"
org_id: "<organization>"
project_id: "<project>"
body:
name: "supply-chain-enforcement"
identifier: "supply_chain_enforcement"
rego: |
package harness.supply_chain
deny[msg] {
not input.artifact.signed
msg := "Artifact must be signed with Cosign before deployment"
}
deny[msg] {
not input.artifact.sbom_attached
msg := "SBOM must be generated and attached to artifact"
}