Skip to content

Commit e1b519f

Browse files
authored
fix(attestation-api): Clean empty descriptions (#422)
Signed-off-by: Javier Rodriguez <[email protected]>
1 parent 253d3f6 commit e1b519f

File tree

5 files changed

+172
-266
lines changed

5 files changed

+172
-266
lines changed

app/cli/internal/action/workflow_run_describe.go

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,6 @@ import (
2020
"errors"
2121
"fmt"
2222
"sort"
23-
"time"
2423

2524
pb "github.com/chainloop-dev/chainloop/app/controlplane/api/controlplane/v1"
2625
"github.com/chainloop-dev/chainloop/internal/attestation/renderer/chainloop"
@@ -43,8 +42,6 @@ type WorkflowRunItemFull struct {
4342
}
4443

4544
type WorkflowRunAttestationItem struct {
46-
ID string `json:"id"`
47-
CreatedAt *time.Time `json:"createdAt"`
4845
Envelope *dsse.Envelope `json:"envelope"`
4946
statement *intoto.Statement
5047
Materials []*Material `json:"materials,omitempty"`
@@ -153,7 +150,6 @@ func (action *WorkflowRunDescribe) Run(runID string, verify bool, publicKey stri
153150
}
154151

155152
item.Attestation = &WorkflowRunAttestationItem{
156-
ID: attestation.Id, CreatedAt: toTimePtr(attestation.CreatedAt.AsTime()),
157153
Envelope: envelope,
158154
statement: statement,
159155
EnvVars: envVars,

0 commit comments

Comments
 (0)