GitHubActionsRuntimeInfo.

Token Property

Summary

Gets the current runtime API authorization token.

Syntax

public string Token { get; }

Examples

if (BuildSystem.GitHubActions.IsRunningOnGitHubActions)
{
    var hasToken = !string.IsNullOrWhiteSpace(BuildSystem.GitHubActions.Environment.Runtime.Token);
    Information(@"Runtime token configured: {0}", hasToken);
}
if (GitHubActions.IsRunningOnGitHubActions)
{
    var hasToken = !string.IsNullOrWhiteSpace(GitHubActions.Environment.Runtime.Token);
    Information(@"Runtime token configured: {0}", hasToken);
}

Value

Type Description
string The current runtime API authorization token.