mirror of
https://github.com/actions/runner.git
synced 2025-12-11 12:57:05 +00:00
fix in correct check (#778)
This commit is contained in:
committed by
GitHub
parent
ce92d7a6b5
commit
5ba7affea4
@@ -430,7 +430,7 @@ namespace GitHub.Runner.Worker
|
||||
|
||||
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.");
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user