Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

secrets context #22

Merged
merged 1 commit into from
Jun 7, 2019
Merged

secrets context #22

merged 1 commit into from
Jun 7, 2019

Conversation

ericsciple
Copy link
Collaborator

No description provided.

@@ -481,16 +481,10 @@ public void InitializeJob(Pipelines.AgentJobRequestMessage message, Cancellation
// Environment variables shared across all actions
EnvironmentVariables = new Dictionary<string, string>(VarUtil.EnvironmentVariableKeyComparer);

// Expression values
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

this just moved down a little

@@ -186,6 +187,19 @@ public bool TryGetValue(string name, out string val)
_trace.Verbose($"Get '{name}' (not found)");
return false;
}

public DictionaryContextData ToSecretsContext()
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Variables is useful infra, we might as well make use of this class to add useful functions :)

if (contextData?.Count > 0)
{
foreach (var pair in contextData)
{
result.ExpressionValues[pair.Key] = pair.Value;
}
}

// Compat for new agent against old server
Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I've been meaning to add this so we don't hit the future-agent-old-server compat problem again :)

@TingluoHuang
Copy link
Member

LGTM

@ericsciple ericsciple merged commit 329c706 into master Jun 7, 2019
@TingluoHuang TingluoHuang deleted the users/ersciple/m154secrets branch June 12, 2019 14:18
volker-raschek pushed a commit to dedalus-cis4u/github-runner-role that referenced this pull request Jul 25, 2022
jsoref pushed a commit to jsoref/actions-runner that referenced this pull request Oct 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants