Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Security upgrade Npgsql.EntityFrameworkCore.PostgreSQL from 6.0.22 to 8.0.0 #5160

Merged
merged 1 commit into from
Aug 20, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion src/Ombi.Store/Ombi.Store.csproj
Original file line number Diff line number Diff line change
@@ -19,7 +19,7 @@
</PackageReference>
<PackageReference Include="Microsoft.EntityFrameworkCore.Sqlite" Version="8.0.5" />
<PackageReference Include="Newtonsoft.Json" Version="13.0.1" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="6.0.22" />
<PackageReference Include="Npgsql.EntityFrameworkCore.PostgreSQL" Version="8.0.0" />
<PackageReference Include="Pomelo.EntityFrameworkCore.MySql" Version="8.0.2" />
<PackageReference Include="Nito.AsyncEx" Version="5.1.2" />
<PackageReference Include="Polly" Version="7.2.3" />

Unchanged files with check annotations Beta

namespace Ombi.Store.Migrations
{
public partial class tvrequestsbackground : Migration

Check warning on line 7 in src/Ombi.Store/Migrations/20180413021646_tvrequestsbackground.cs

GitHub Actions / unit-test

The type name 'tvrequestsbackground' only contains lower-cased ascii characters. Such names may become reserved for the language.

Check warning on line 7 in src/Ombi.Store/Migrations/20180413021646_tvrequestsbackground.cs

GitHub Actions / publish (linux-arm, tar.gz, tar)

The type name 'tvrequestsbackground' only contains lower-cased ascii characters. Such names may become reserved for the language.

Check warning on line 7 in src/Ombi.Store/Migrations/20180413021646_tvrequestsbackground.cs

GitHub Actions / publish (win-x64, zip, zip)

The type name 'tvrequestsbackground' only contains lower-cased ascii characters. Such names may become reserved for the language.

Check warning on line 7 in src/Ombi.Store/Migrations/20180413021646_tvrequestsbackground.cs

GitHub Actions / publish (win-x86, zip, zip)

The type name 'tvrequestsbackground' only contains lower-cased ascii characters. Such names may become reserved for the language.

Check warning on line 7 in src/Ombi.Store/Migrations/20180413021646_tvrequestsbackground.cs

GitHub Actions / publish (linux-arm64, tar, tar.gz)

The type name 'tvrequestsbackground' only contains lower-cased ascii characters. Such names may become reserved for the language.

Check warning on line 7 in src/Ombi.Store/Migrations/20180413021646_tvrequestsbackground.cs

GitHub Actions / publish (linux-x64, tar.gz, tar)

The type name 'tvrequestsbackground' only contains lower-cased ascii characters. Such names may become reserved for the language.

Check warning on line 7 in src/Ombi.Store/Migrations/20180413021646_tvrequestsbackground.cs

GitHub Actions / publish (osx-x64, tar, tar.gz)

The type name 'tvrequestsbackground' only contains lower-cased ascii characters. Such names may become reserved for the language.
{
protected override void Up(MigrationBuilder migrationBuilder)
{
{
[DbContext(typeof(OmbiContext))]
[Migration("20180413021646_tvrequestsbackground")]
partial class tvrequestsbackground

Check warning on line 18 in src/Ombi.Store/Migrations/20180413021646_tvrequestsbackground.Designer.cs

GitHub Actions / unit-test

The type name 'tvrequestsbackground' only contains lower-cased ascii characters. Such names may become reserved for the language.

Check warning on line 18 in src/Ombi.Store/Migrations/20180413021646_tvrequestsbackground.Designer.cs

GitHub Actions / publish (linux-arm, tar.gz, tar)

The type name 'tvrequestsbackground' only contains lower-cased ascii characters. Such names may become reserved for the language.

Check warning on line 18 in src/Ombi.Store/Migrations/20180413021646_tvrequestsbackground.Designer.cs

GitHub Actions / publish (win-x64, zip, zip)

The type name 'tvrequestsbackground' only contains lower-cased ascii characters. Such names may become reserved for the language.

Check warning on line 18 in src/Ombi.Store/Migrations/20180413021646_tvrequestsbackground.Designer.cs

GitHub Actions / publish (win-x86, zip, zip)

The type name 'tvrequestsbackground' only contains lower-cased ascii characters. Such names may become reserved for the language.

Check warning on line 18 in src/Ombi.Store/Migrations/20180413021646_tvrequestsbackground.Designer.cs

GitHub Actions / publish (linux-arm64, tar, tar.gz)

The type name 'tvrequestsbackground' only contains lower-cased ascii characters. Such names may become reserved for the language.

Check warning on line 18 in src/Ombi.Store/Migrations/20180413021646_tvrequestsbackground.Designer.cs

GitHub Actions / publish (linux-x64, tar.gz, tar)

The type name 'tvrequestsbackground' only contains lower-cased ascii characters. Such names may become reserved for the language.

Check warning on line 18 in src/Ombi.Store/Migrations/20180413021646_tvrequestsbackground.Designer.cs

GitHub Actions / publish (osx-x64, tar, tar.gz)

The type name 'tvrequestsbackground' only contains lower-cased ascii characters. Such names may become reserved for the language.
{
protected override void BuildTargetModel(ModelBuilder modelBuilder)
{
public string ConnectionString { get; set; }
}
public class NpgsqlCaseInsensitiveSqlGenerationHelper : NpgsqlSqlGenerationHelper

Check warning on line 233 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / unit-test

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 233 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (linux-arm, tar.gz, tar)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 233 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (win-x64, zip, zip)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 233 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (win-x86, zip, zip)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 233 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (linux-arm64, tar, tar.gz)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 233 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (linux-x64, tar.gz, tar)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 233 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (osx-x64, tar, tar.gz)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.
{
const string EFMigrationsHisory = "__EFMigrationsHistory";
public NpgsqlCaseInsensitiveSqlGenerationHelper(RelationalSqlGenerationHelperDependencies dependencies)
: base(dependencies) { }

Check warning on line 237 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / unit-test

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 237 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (linux-arm, tar.gz, tar)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 237 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (win-x64, zip, zip)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 237 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (win-x86, zip, zip)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 237 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (linux-arm64, tar, tar.gz)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 237 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (linux-x64, tar.gz, tar)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 237 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (osx-x64, tar, tar.gz)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.
public override string DelimitIdentifier(string identifier) =>
base.DelimitIdentifier(identifier == EFMigrationsHisory ? identifier : identifier.ToLower());

Check warning on line 239 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / unit-test

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 239 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (linux-arm, tar.gz, tar)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 239 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (win-x64, zip, zip)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 239 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (win-x86, zip, zip)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 239 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (linux-arm64, tar, tar.gz)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 239 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (linux-x64, tar.gz, tar)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.

Check warning on line 239 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / publish (osx-x64, tar, tar.gz)

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.
public override void DelimitIdentifier(StringBuilder builder, string identifier)
=> base.DelimitIdentifier(builder, identifier == EFMigrationsHisory ? identifier : identifier.ToLower());

Check warning on line 241 in src/Ombi/Extensions/DatabaseExtensions.cs

GitHub Actions / unit-test

Npgsql.EntityFrameworkCore.PostgreSQL.Storage.Internal.NpgsqlSqlGenerationHelper is an internal API that supports the Entity Framework Core infrastructure and not subject to the same compatibility standards as public APIs. It may be changed or removed without notice in any release.
}
}
}
{
var context = GetContext();
context.Request.Path = "/api";
context.Request.Headers.Add("UserAccessToken", new Microsoft.Extensions.Primitives.StringValues("test"));

Check warning on line 47 in src/Ombi.Tests/Middlewear/ApiKeyMiddlewearTests.cs

GitHub Actions / unit-test

Use IHeaderDictionary.Append or the indexer to append or set headers. IDictionary.Add will throw an ArgumentException when attempting to add a duplicate key. (https://aka.ms/aspnet/analyzers)
var user = new Store.Entities.OmbiUser
{
UserAccessToken = "test",
user
});
umMock.Setup(x => x.GetRolesAsync(user)).ReturnsAsync(new List<string> { "Admin" });
_mocker.Setup<IServiceProvider, object?>(x => x.GetService(typeof(OmbiUserManager)))

Check warning on line 58 in src/Ombi.Tests/Middlewear/ApiKeyMiddlewearTests.cs

GitHub Actions / unit-test

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
.Returns(umMock.Object);
{
var context = GetContext();
context.Request.Path = "/api";
context.Request.Headers.Add("UserAccessToken", new Microsoft.Extensions.Primitives.StringValues("invalid"));

Check warning on line 73 in src/Ombi.Tests/Middlewear/ApiKeyMiddlewearTests.cs

GitHub Actions / unit-test

Use IHeaderDictionary.Append or the indexer to append or set headers. IDictionary.Add will throw an ArgumentException when attempting to add a duplicate key. (https://aka.ms/aspnet/analyzers)
var user = new Store.Entities.OmbiUser
{
UserAccessToken = "test",
user
});
umMock.Setup(x => x.GetRolesAsync(user)).ReturnsAsync(new List<string> { "Admin" });
_mocker.Setup<IServiceProvider, object?>(x => x.GetService(typeof(OmbiUserManager)))

Check warning on line 84 in src/Ombi.Tests/Middlewear/ApiKeyMiddlewearTests.cs

GitHub Actions / unit-test

The annotation for nullable reference types should only be used in code within a '#nullable' annotations context.
.Returns(umMock.Object);
return;
}
var currentLocation = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);

Check warning on line 72 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (linux-arm, tar.gz, tar)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 72 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (win-x64, zip, zip)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 72 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (win-x86, zip, zip)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 72 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (linux-arm64, tar, tar.gz)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 72 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (linux-x64, tar.gz, tar)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 72 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (osx-x64, tar, tar.gz)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.
Logger.LogDebug(LoggingEvents.Updater, "Path: {0}", currentLocation);
var productVersion = AssemblyHelper.GetRuntimeVersion();
{
updaterExtension = ".exe";
}
var updaterFile = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location),

Check warning on line 204 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (linux-arm, tar.gz, tar)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 204 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (win-x64, zip, zip)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 204 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (win-x86, zip, zip)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 204 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (linux-arm64, tar, tar.gz)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 204 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (linux-x64, tar.gz, tar)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 204 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (osx-x64, tar, tar.gz)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.
"TempUpdate", "updater", $"Ombi.Updater{updaterExtension}");
// Make sure the file is an executable
CreateNoWindow = true, // Ignored if UseShellExecute is set to true
FileName = updaterFile,
Arguments = GetArgs(settings),
WorkingDirectory = Path.Combine(Path.GetDirectoryName(Assembly.GetEntryAssembly().Location), "TempUpdate"),

Check warning on line 218 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (linux-arm, tar.gz, tar)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 218 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (win-x64, zip, zip)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 218 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (win-x86, zip, zip)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 218 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (linux-arm64, tar, tar.gz)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 218 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (linux-x64, tar.gz, tar)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 218 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (osx-x64, tar, tar.gz)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.
};
//if (settings.Username.HasValue())
//{
var url = _appConfig.Get(ConfigurationTypes.Url);
var storage = _appConfig.Get(ConfigurationTypes.StoragePath);
var currentLocation = Path.GetDirectoryName(Assembly.GetEntryAssembly().Location);

Check warning on line 249 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (linux-arm, tar.gz, tar)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 249 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (win-x64, zip, zip)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 249 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (win-x86, zip, zip)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 249 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (linux-arm64, tar, tar.gz)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 249 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (linux-x64, tar.gz, tar)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.

Check warning on line 249 in src/Ombi.Schedule/Jobs/Ombi/OmbiAutomaticUpdater.cs

GitHub Actions / publish (osx-x64, tar, tar.gz)

'System.Reflection.Assembly.Location' always returns an empty string for assemblies embedded in a single-file app. If the path to the app directory is needed, consider calling 'System.AppContext.BaseDirectory'.
var processName = (settings.ProcessName.HasValue() ? settings.ProcessName : "Ombi");
var sb = new StringBuilder();