mirror of
https://github.com/actions/runner.git
synced 2025-12-12 05:37:01 +00:00
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:
@@ -8,10 +8,10 @@ namespace GitHub.Runner.Worker
|
|||||||
{
|
{
|
||||||
private readonly HashSet<string> _contextEnvAllowlist = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
|
private readonly HashSet<string> _contextEnvAllowlist = new HashSet<string>(StringComparer.OrdinalIgnoreCase)
|
||||||
{
|
{
|
||||||
"action",
|
|
||||||
"action_path",
|
"action_path",
|
||||||
"action_ref",
|
"action_ref",
|
||||||
"action_repository",
|
"action_repository",
|
||||||
|
"action",
|
||||||
"actor",
|
"actor",
|
||||||
"api_url",
|
"api_url",
|
||||||
"base_ref",
|
"base_ref",
|
||||||
@@ -22,12 +22,12 @@ namespace GitHub.Runner.Worker
|
|||||||
"head_ref",
|
"head_ref",
|
||||||
"job",
|
"job",
|
||||||
"path",
|
"path",
|
||||||
"ref",
|
|
||||||
"ref_name",
|
"ref_name",
|
||||||
"ref_protected",
|
"ref_protected",
|
||||||
"ref_type",
|
"ref_type",
|
||||||
"repository",
|
"ref",
|
||||||
"repository_owner",
|
"repository_owner",
|
||||||
|
"repository",
|
||||||
"retention_days",
|
"retention_days",
|
||||||
"run_attempt",
|
"run_attempt",
|
||||||
"run_id",
|
"run_id",
|
||||||
@@ -35,6 +35,7 @@ namespace GitHub.Runner.Worker
|
|||||||
"server_url",
|
"server_url",
|
||||||
"sha",
|
"sha",
|
||||||
"step_summary",
|
"step_summary",
|
||||||
|
"triggering_actor",
|
||||||
"workflow",
|
"workflow",
|
||||||
"workspace",
|
"workspace",
|
||||||
};
|
};
|
||||||
|
|||||||
Reference in New Issue
Block a user