Table of Contents

Class GitHubAuthHelper

Namespace
Ando.Utilities
Assembly
ando.dll

Helper for obtaining GitHub authentication tokens.

public class GitHubAuthHelper
Inheritance
GitHubAuthHelper
Inherited Members

Constructors

GitHubAuthHelper(IBuildLogger)

public GitHubAuthHelper(IBuildLogger logger)

Parameters

logger IBuildLogger

Methods

GetEnvironment()

Returns environment dictionary with GITHUB_TOKEN set.

public Dictionary<string, string> GetEnvironment()

Returns

Dictionary<string, string>

GetRequiredToken()

Gets the GitHub token, throwing if not available.

public string GetRequiredToken()

Returns

string

GetToken()

Gets the GitHub token from GITHUB_TOKEN env var or gh CLI. Returns null if no token is available.

public string? GetToken()

Returns

string