Summary
Gets the current runtime API authorization token.
- Namespace
- Cake
.Common .Build .GitHubActions .Data - Containing Type
- Git
Hub Actions Runtime Info
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. |
