Skip to content

Commit

Permalink
fix in correct check (actions#778)
Browse files Browse the repository at this point in the history
  • Loading branch information
yaananth authored Oct 30, 2020
1 parent ce92d7a commit 5ba7aff
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Runner.Worker/JobExtension.cs
Original file line number Diff line number Diff line change
Expand Up @@ -430,7 +430,7 @@ public void FinalizeJob(IExecutionContext jobContext, Pipelines.AgentJobRequestM

var environmentUrlToken = templateEvaluator.EvaluateEnvironmentUrl(jobContext.ActionsEnvironment.Url, context.ExpressionValues, context.ExpressionFunctions);
var environmentUrl = environmentUrlToken.AssertString("environment.url");
if (string.Equals(environmentUrl.Value, HostContext.SecretMasker.MaskSecrets(environmentUrl.Value)))
if (!string.Equals(environmentUrl.Value, HostContext.SecretMasker.MaskSecrets(environmentUrl.Value)))
{
context.Warning($"Skip setting environment url as environment '{jobContext.ActionsEnvironment.Name}' may contain secret.");
}
Expand Down

0 comments on commit 5ba7aff

Please sign in to comment.