Skip to content

Commit 66a5e54

Browse files
authored
fix(cli): do not fail on federated tokens (#2161)
Signed-off-by: Miguel Martinez <[email protected]>
1 parent 764d3d4 commit 66a5e54

File tree

1 file changed

+2
-1
lines changed

1 file changed

+2
-1
lines changed

app/cli/internal/action/attestation_init.go

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -225,7 +225,8 @@ func (action *AttestationInit) Run(ctx context.Context, opts *AttestationInitRun
225225
if action.AuthTokenRaw != "" {
226226
authInfo, err = extractAuthInfo(action.AuthTokenRaw)
227227
if err != nil {
228-
return "", err
228+
// Do not fail since we might be using federated auth for which we do can't extract info yet
229+
action.Logger.Warn().Msgf("can't extract info for the auth token: %v", err)
229230
}
230231
}
231232

0 commit comments

Comments
 (0)