r-lib / credentials

Tools for Managing SSH and Git Credentials
https://docs.ropensci.org/credentials
Other
72 stars 5 forks source link

Is there a read-only mode? #28

Open charmoniumQ opened 6 months ago

charmoniumQ commented 6 months ago

I am trying to use sandpaper which uses gert which uses credentials.

Upon loading credentials, the library tries to change my git config (by setting a credential helper).

I don't want invoking an application like sandpaper to globally modify my Git configuration. That is unnecessary for my use case.

Is there a way to turn off this behavior (maybe a read-only mode, where it can still read SSH keys)? Can that be activated from a client-of-a-client of credentials (e.g., an environment variable)?