GitHubActionsCommands.

SetSecret(string) Method

Summary

Registers a secret which will get masked in the build log.

Syntax

public void SetSecret(string secret)

Examples

if (GitHubActions.IsRunningOnGitHubActions)
{
    GitHubActions.Commands.SetSecret(Guid.NewGuid().ToString());
}

Parameters

Name Type Description
secret string The secret.

Return Value

Type Description
void