chore: 修复 CI 安全与 lint 检查
This commit is contained in:
@@ -211,9 +211,7 @@ func (h *AccountHandler) importCodexSessions(ctx context.Context, req CodexSessi
|
||||
})
|
||||
continue
|
||||
}
|
||||
for _, warning := range expiryWarnings {
|
||||
item.WarningTexts = append(item.WarningTexts, warning)
|
||||
}
|
||||
item.WarningTexts = append(item.WarningTexts, expiryWarnings...)
|
||||
if credentialExpiresAt != nil {
|
||||
item.Credentials["expires_at"] = credentialExpiresAt.Format(time.RFC3339)
|
||||
}
|
||||
@@ -565,7 +563,9 @@ func normalizeCodexImportEntry(entry codexImportEntry) (*codexImportAccount, err
|
||||
}
|
||||
if item.IDToken != "" {
|
||||
item.Credentials["id_token"] = item.IDToken
|
||||
enrichCodexImportAccountFromJWT(item, item.IDToken, false, now)
|
||||
if err := enrichCodexImportAccountFromJWT(item, item.IDToken, false, now); err != nil {
|
||||
return nil, err
|
||||
}
|
||||
}
|
||||
if err := enrichCodexImportAccountFromJWT(item, item.AccessToken, true, now); err != nil {
|
||||
return nil, err
|
||||
|
||||
Reference in New Issue
Block a user