Skip to content

Commit a4dc8a1

Browse files
authored
Revert "feat: gated attestation add" (#2633)
Signed-off-by: Sylwester Piskozub <[email protected]>
1 parent b6bfb35 commit a4dc8a1

File tree

1 file changed

+2
-15
lines changed

1 file changed

+2
-15
lines changed

app/cli/cmd/attestation_add.go

Lines changed: 2 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -119,22 +119,9 @@ func newAttestationAddCmd() *cobra.Command {
119119
return err
120120
}
121121

122-
if err := output.EncodeOutput(flagOutputFormat, resp, func(s *action.AttestationStatusMaterial) error {
122+
return output.EncodeOutput(flagOutputFormat, resp, func(s *action.AttestationStatusMaterial) error {
123123
return displayMaterialInfo(s, policies[resp.Name])
124-
}); err != nil {
125-
return err
126-
}
127-
128-
// Check for gated policy violations
129-
for _, evaluations := range policies {
130-
for _, eval := range evaluations {
131-
if len(eval.Violations) > 0 && eval.Gate {
132-
return NewGateError(eval.Name)
133-
}
134-
}
135-
}
136-
137-
return nil
124+
})
138125
},
139126
)
140127
},

0 commit comments

Comments
 (0)