Skip to content

Commit

Permalink
fix(attestation-api): Clean empty descriptions (#422)
Browse files Browse the repository at this point in the history
Signed-off-by: Javier Rodriguez <javier.rodleo@gmail.com>
  • Loading branch information
javirln authored Nov 8, 2023
1 parent 253d3f6 commit e1b519f
Show file tree
Hide file tree
Showing 5 changed files with 172 additions and 266 deletions.
4 changes: 0 additions & 4 deletions app/cli/internal/action/workflow_run_describe.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ import (
"errors"
"fmt"
"sort"
"time"

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

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

item.Attestation = &WorkflowRunAttestationItem{
ID: attestation.Id, CreatedAt: toTimePtr(attestation.CreatedAt.AsTime()),
Envelope: envelope,
statement: statement,
EnvVars: envVars,
Expand Down
Loading

0 comments on commit e1b519f

Please sign in to comment.