Class WorkflowSecretInjection
- Namespace
- Invex.Atom.Workflows.Options.Injections
- Assembly
- Invex.Atom.Workflows.dll
A workflow option that injects a secret from the workflow platform's secret store into a target's step.
public sealed record WorkflowSecretInjection : IBuildOption
- Inheritance
-
objectWorkflowSecretInjection
- Implements
Examples
new WorkflowTargetDefinition(nameof(PushToRelease))
{
Options = [BuildOptions.Inject.Secret(nameof(GitHubToken))],
};
Remarks
Typically created via BuildOptions.Inject.Secret(name). Workflow platforms mask these secrets in logs
and outputs.
Constructors
WorkflowSecretInjection(string)
A workflow option that injects a secret from the workflow platform's secret store into a target's step.
public WorkflowSecretInjection(string SecretName)
Parameters
SecretNamestringThe name of the secret parameter to inject.
Examples
new WorkflowTargetDefinition(nameof(PushToRelease))
{
Options = [BuildOptions.Inject.Secret(nameof(GitHubToken))],
};
Remarks
Typically created via BuildOptions.Inject.Secret(name). Workflow platforms mask these secrets in logs
and outputs.
Properties
SecretName
The name of the secret parameter to inject.
public string SecretName { get; init; }
Property Value
- string