Skip to content

Commit 5c5ac54

Browse files
MemberNotNull
1 parent 5c737a1 commit 5c5ac54

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

Verz/Registries/MintPlayer.Verz.Registry.GithubPackageRegistry/GithubPackageRegistry.cs

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,7 @@
44
using NuGet.Configuration;
55
using NuGet.Protocol;
66
using NuGet.Protocol.Core.Types;
7+
using System.Diagnostics.CodeAnalysis;
78

89
namespace MintPlayer.Verz.Registry.GithubPackageRegistry;
910

@@ -38,10 +39,11 @@ public async Task<IEnumerable<string>> GetPackageVersions(string packageId)
3839
: $"{v.Version}-{v.Release}");
3940
}
4041

42+
[MemberNotNull(nameof(nugetPackageFinder))]
4143
public async Task InitializeFeed()
4244
{
4345
var feed = new PackageSource(NugetFeedUrl, "github.com");
44-
//feed.Credentials = new PackageSourceCredential("github.com", organization, token, true, null); // goto github.com/settings/tokens
46+
feed.Credentials = new PackageSourceCredential("github.com", organization, token, true, null); // goto github.com/settings/tokens
4547
var repository = Repository.Factory.GetCoreV3(feed);
4648
nugetPackageFinder = await repository.GetResourceAsync<FindPackageByIdResource>();
4749
cache = new SourceCacheContext();

0 commit comments

Comments
 (0)