Add secret source to start job step (#1411)

* Add secret source to start job step

WIP

* Update to use GetGitHubContext to grab source info

* Update JobExtensionL0.cs

* Update JobExtension.cs

* Update JobExtension.cs
This commit is contained in:
Laura Yu
2021-11-17 14:09:38 -08:00
committed by GitHub
parent 3e34fb10c1
commit dcc5d34ad1
2 changed files with 7 additions and 0 deletions

View File

@@ -142,6 +142,12 @@ namespace GitHub.Runner.Worker
Trace.Error(ex);
}
var secretSource = context.GetGitHubContext("secret_source");
if (!string.IsNullOrEmpty(secretSource))
{
context.Output($"Secret source: {secretSource}");
}
var repoFullName = context.GetGitHubContext("repository");
ArgUtil.NotNull(repoFullName, nameof(repoFullName));
context.Debug($"Primary repository: {repoFullName}");