Skip to content

Commit 98c857b

Browse files
expose github.actor_id, github.workflow_ref & github.workflow_sha as environment variable (#2249)
* expose workflow refs/sha as environment variables * fixes environment variable ordering * job_workflow_ref/sha aren't available in gh ctx
1 parent dda53af commit 98c857b

File tree

1 file changed

+7
-2
lines changed

1 file changed

+7
-2
lines changed

src/Runner.Worker/GitHubContext.cs

+7-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ public sealed class GitHubContext : DictionaryContextData, IEnvironmentContextDa
1313
"action_repository",
1414
"action",
1515
"actor",
16+
"actor_id",
1617
"api_url",
1718
"base_ref",
1819
"env",
@@ -27,8 +28,10 @@ public sealed class GitHubContext : DictionaryContextData, IEnvironmentContextDa
2728
"ref_protected",
2829
"ref_type",
2930
"ref",
30-
"repository_owner",
3131
"repository",
32+
"repository_id",
33+
"repository_owner",
34+
"repository_owner_id",
3235
"retention_days",
3336
"run_attempt",
3437
"run_id",
@@ -39,7 +42,9 @@ public sealed class GitHubContext : DictionaryContextData, IEnvironmentContextDa
3942
"step_summary",
4043
"triggering_actor",
4144
"workflow",
42-
"workspace",
45+
"workflow_ref",
46+
"workflow_sha",
47+
"workspace"
4348
};
4449

4550
public IEnumerable<KeyValuePair<string, string>> GetRuntimeEnvironmentVariables()

0 commit comments

Comments
 (0)