Files
SMAPI/src/SMAPI.Web/Framework/ConfigModels/MalwareBlacklistConfig.cs
T
Jesse Plamondon-Willard d6f868ecef migrate to the revamped malware blacklist
This commit:
- moves the malware blacklist into the malware scanner data repo;
- optimizes the format to simplify editing (e.g. to allow multiple IDs/hashes per entry);
- syncs it automatically to the web server;
- and allows SMAPI to launch without the blacklist (in which case it'll resync automatically).
2026-09-28 00:44:03 -04:00

18 lines
856 B
C#

namespace StardewModdingAPI.Web.Framework.ConfigModels;
/// <summary>The config settings for syncing the malware blacklist from the Stardew malware scanner data repo.</summary>
internal class MalwareBlacklistConfig
{
/*********
** Accessors
*********/
/// <summary>The GitHub repository which contains the malware blacklist, or <c>null</c> to disable syncing. The repository must be readable to the GitHub login in <see cref="ApiClientsConfig"/>.</summary>
public string? GitHubRepo { get; set; }
/// <summary>The branch, tag, or commit from which to fetch the file, or <c>null</c> for the repository's default branch.</summary>
public string? GitRef { get; set; }
/// <summary>The malware blacklist's file path relative to the <see cref="GitHubRepo"/> root.</summary>
public string FilePath { get; set; } = null!;
}