(origin string, creds *Credentials)
| 102 | } |
| 103 | |
| 104 | func (s *Store) saveToKeyring(origin string, creds *Credentials) error { |
| 105 | data, err := json.Marshal(creds) //nolint:gosec // G117: intentional credential marshaling for storage |
| 106 | if err != nil { |
| 107 | return err |
| 108 | } |
| 109 | return keyring.Set(serviceName, key(origin), string(data)) |
| 110 | } |
| 111 | |
| 112 | func (s *Store) credentialsPath() string { |
| 113 | return filepath.Join(s.fallbackDir, "credentials.json") |
no test coverage detected