1
0
Fork 1
mirror of https://github.com/TeamOctolings/Octobot.git synced 2025-01-31 00:19:00 +03:00

fix: do not use RepositoryUrl from GitInfo (#287)

GitInfo's `RepositoryUrl` string depends on origin URL, which is
unvalidated user input that isn't even guaranteed to exist. This can
cause issues that are almost impossible to
debug

Closes #281
This commit is contained in:
Octol1ttle 2024-03-24 17:39:26 +05:00 committed by GitHub
parent a9509deb1c
commit 844615e8bf
Signed by: GitHub
GPG key ID: B5690EEEBB952194

View file

@ -2,15 +2,15 @@
public static class BuildInfo
{
public static string RepositoryUrl => ThisAssembly.Git.RepositoryUrl;
public const string RepositoryUrl = "https://github.com/TeamOctolings/Octobot";
public static string IssuesUrl => $"{RepositoryUrl}/issues";
public const string IssuesUrl = $"{RepositoryUrl}/issues";
public static string WikiUrl => $"{RepositoryUrl}/wiki";
public const string WikiUrl = $"{RepositoryUrl}/wiki";
private static string Commit => ThisAssembly.Git.Commit;
private const string Commit = ThisAssembly.Git.Commit;
private static string Branch => ThisAssembly.Git.Branch;
private const string Branch = ThisAssembly.Git.Branch;
public static bool IsDirty => ThisAssembly.Git.IsDirty;