(removed) FilepathBase is removed in favor of filepath.Dir which is OS-agnostic isSOPSEncrypted checks if a config file appears to be SOPS encrypted.
(path string, data []byte)
| 46 | |
| 47 | // isSOPSEncrypted checks if a config file appears to be SOPS encrypted. |
| 48 | func isSOPSEncrypted(path string, data []byte) bool { |
| 49 | // Use the config package's SOPS detection logic |
| 50 | return config.IsSOPSEncrypted(path, data) |
| 51 | } |
| 52 | |
| 53 | // findSOPSRule walks up parent directories to find a .sops.yaml, returns true if found. |
| 54 | func findSOPSRule(startDir string) bool { |
no test coverage detected