You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Add option/setting to suppress erase operation #2435
Static credentials (tokens) in automated contexts are normally valid until changed explicitly.
Transient failures should not lead to erase, especially as restore requires manual interaction.
Implementing this in a central place would be preferable to modifying each provider.
The Git credential doc for the ephemeral flag indicates to not store (and I'd say also not erase) those credential types.
With the respective extension to GitResponse being present in GCM v3, this could be used as a trigger.
We'd still need a way to mark (or derive) the condition for credentials to be treated in this kind of way:
explicit attribute on wincred, libsecret and keychain storage
Activity
becm commentedon Sep 15, 2026
Most Providers seem to use a plain copy (or bad re-implementation) of
GetServiceNameStoreCredentialAsyncEraseCredentialAsyncas already present in GitCredentialManager.HostProvider, which could be extended and used as a shared base class.
becm commentedon Oct 24, 2026
The Git credential doc for the
ephemeralflag indicates to not store (and I'd say also not erase) those credential types.With the respective extension to
GitResponsebeing present in GCM v3, this could be used as a trigger.We'd still need a way to mark (or derive) the condition for credentials to be treated in this kind of way:
wincred,libsecretandkeychainstorage(like generic: add local check for token expiry #1837)
(maybe similar to the approach in Store PasswordExpiry and OAuthRefreshToken #1464).