diff --git a/pkg/attestation/renderer/chainloop/chainloop.go b/pkg/attestation/renderer/chainloop/chainloop.go index fbbddc77a..12fcee86d 100644 --- a/pkg/attestation/renderer/chainloop/chainloop.go +++ b/pkg/attestation/renderer/chainloop/chainloop.go @@ -119,6 +119,7 @@ type Metadata struct { FinishedAt *time.Time `json:"finishedAt"` WorkflowRunID string `json:"workflowRunID"` WorkflowID string `json:"workflowID"` + WorkflowName string `json:"workflowName"` Organization string `json:"organization"` ContractName string `json:"contractName"` ContractVersion string `json:"contractVersion"` @@ -183,6 +184,7 @@ func getChainloopMeta(att *v1.Attestation) *Metadata { Project: wfMeta.GetProject(), WorkflowRunID: wfMeta.GetWorkflowRunId(), WorkflowID: wfMeta.GetWorkflowId(), + WorkflowName: wfMeta.GetName(), Organization: wfMeta.GetOrganization(), ContractName: wfMeta.GetContractName(), ContractVersion: wfMeta.GetSchemaRevision(), diff --git a/pkg/attestation/renderer/chainloop/testdata/attestation-pe-snake.json b/pkg/attestation/renderer/chainloop/testdata/attestation-pe-snake.json index 943bde8a5..b3424d547 100644 --- a/pkg/attestation/renderer/chainloop/testdata/attestation-pe-snake.json +++ b/pkg/attestation/renderer/chainloop/testdata/attestation-pe-snake.json @@ -77,6 +77,7 @@ "projectVersionPrerelease": true, "team": "", "workflowID": "94208094-b8d3-4b38-b1f1-c609c47c49ea", + "workflowName": "skipped", "workflowRunID": "e4cec971-6f4f-442a-8de0-d12ddc4667f2" }, "policyAttBlocked": false, diff --git a/pkg/attestation/renderer/chainloop/testdata/attestation.output-2.v0.2.json b/pkg/attestation/renderer/chainloop/testdata/attestation.output-2.v0.2.json index 26c7808e3..1523398b1 100644 --- a/pkg/attestation/renderer/chainloop/testdata/attestation.output-2.v0.2.json +++ b/pkg/attestation/renderer/chainloop/testdata/attestation.output-2.v0.2.json @@ -115,6 +115,7 @@ "projectVersionPrerelease": false, "team": "", "workflowID": "ab98be70-041b-4a82-97f3-daa56f61262b", + "workflowName": "test-new-types", "workflowRunID": "f97a0680-e64b-478a-9eea-df8864fa27f8" }, "policyAttBlocked": false, diff --git a/pkg/attestation/renderer/chainloop/testdata/attestation.output.v0.2.json b/pkg/attestation/renderer/chainloop/testdata/attestation.output.v0.2.json index 3ca6d2273..c16fa60d0 100644 --- a/pkg/attestation/renderer/chainloop/testdata/attestation.output.v0.2.json +++ b/pkg/attestation/renderer/chainloop/testdata/attestation.output.v0.2.json @@ -77,6 +77,7 @@ "projectVersionPrerelease": true, "team": "", "workflowID": "94208094-b8d3-4b38-b1f1-c609c47c49ea", + "workflowName": "skipped", "workflowRunID": "e4cec971-6f4f-442a-8de0-d12ddc4667f2" }, "policyAttBlocked": false,