Skip to content

Add security hardening and atomic writes to backend writers #315

Add security hardening and atomic writes to backend writers

Add security hardening and atomic writes to backend writers #315

Triggered via push January 6, 2026 09:55
Status Failure
Total duration 1m 14s
Artifacts

ci.yml

on: push
Fit to window
Zoom out
Zoom in

Annotations

1 error and 10 warnings
Build and Test
Process completed with exit code 1.
Build and Test: Controllers/BackupController.cs#L309
Possible null reference argument for parameter 'targetFilePath' in 'Task<int> BackupRestoreService.RestoreKeysAsync(string fileName, int version, List<string> keys, string targetFilePath, string basePath, bool createBackupBeforeRestore = true)'.
Build and Test: Controllers/BackupController.cs#L275
Possible null reference argument for parameter 'currentFilePath' in 'Task<BackupDiffResult> BackupRestoreService.PreviewRestoreAsync(string fileName, int version, string currentFilePath, string basePath)'.
Build and Test: UI/ResourceEditorWindow/ResourceEditorWindow.BatchOperations.cs#L250
Possible null reference argument for parameter 'filePath' in 'Task<BackupMetadata> BackupVersionManager.CreateBackupAsync(string filePath, string operation, string basePath)'.
Build and Test: Controllers/BackupController.cs#L175
Possible null reference argument for parameter 'filePath' in 'Task<BackupMetadata> BackupVersionManager.CreateBackupAsync(string filePath, string operation, string basePath)'.
Build and Test: Controllers/BackupController.cs#L153
Possible null reference argument for parameter 'filePath' in 'Task<BackupMetadata> BackupVersionManager.CreateBackupAsync(string filePath, string operation, string basePath)'.
Build and Test: Commands/AddCommand.cs#L349
Possible null reference argument for parameter 'filePath' in 'Task<BackupMetadata> BackupVersionManager.CreateBackupAsync(string filePath, string operation, string basePath)'.
Build and Test: LocalizationManager.Core/Backends/Json/JsonResourceReader.cs#L102
Cannot convert null literal to non-nullable reference type.
Build and Test: LocalizationManager.Core/Backends/Json/JsonResourceWriter.cs#L56
Possible null reference argument for parameter 'destFileName' in 'void File.Move(string sourceFileName, string destFileName, bool overwrite)'.
Build and Test: LocalizationManager.Core/Translation/Providers/DeepLProvider.cs#L77
Possible null reference argument for parameter 'targetLanguageCode' in 'Task<TextResult> Translator.TranslateTextAsync(string text, string? sourceLanguageCode, string targetLanguageCode, TextTranslateOptions? options = null, CancellationToken cancellationToken = default(CancellationToken))'.
Build and Test: LocalizationManager.Core/Backends/Resx/ResxResourceWriter.cs#L88
Possible null reference argument for parameter 'destFileName' in 'void File.Move(string sourceFileName, string destFileName, bool overwrite)'.