worker: expose github.triggering_actor as an env-var (#1726)

* worker: expose `github.triggering_actor` as an env-var

* worker: sort the allow list
This commit is contained in:
Antoine Grondin
2022-03-02 13:49:26 -08:00
committed by GitHub
parent 2c6064a655
commit ad0d0c4d0a

View File

@@ -8,10 +8,10 @@ namespace GitHub.Runner.Worker
{
private readonly HashSet<string> _contextEnvAllowlist = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
{
"action",
"action_path",
"action_ref",
"action_repository",
"action",
"actor",
"api_url",
"base_ref",
@@ -22,12 +22,12 @@ namespace GitHub.Runner.Worker
"head_ref",
"job",
"path",
"ref",
"ref_name",
"ref_protected",
"ref_type",
"repository",
"ref",
"repository_owner",
"repository",
"retention_days",
"run_attempt",
"run_id",
@@ -35,6 +35,7 @@ namespace GitHub.Runner.Worker
"server_url",
"sha",
"step_summary",
"triggering_actor",
"workflow",
"workspace",
};