File tree Expand file tree Collapse file tree 2 files changed +11
-2
lines changed
src/Runner.Worker/Handlers Expand file tree Collapse file tree 2 files changed +11
-2
lines changed Original file line number Diff line number Diff line change 1
- using System . Collections . Generic ;
1
+ using System . Collections . Generic ;
2
2
using System . IO ;
3
3
using System . Threading . Tasks ;
4
4
using System ;
@@ -214,6 +214,10 @@ public async Task RunAsync(ActionRunStage stage)
214
214
{
215
215
Environment [ "ACTIONS_CACHE_URL" ] = cacheUrl ;
216
216
}
217
+ if ( systemConnection . Data . TryGetValue ( "GenerateIdTokenUrl" , out var generateIdTokenUrl ) && ! string . IsNullOrEmpty ( generateIdTokenUrl ) )
218
+ {
219
+ Environment [ "ACTIONS_ID_TOKEN_REQUEST_URL" ] = generateIdTokenUrl ;
220
+ }
217
221
218
222
foreach ( var variable in this . Environment )
219
223
{
Original file line number Diff line number Diff line change @@ -53,6 +53,10 @@ public async Task RunAsync(ActionRunStage stage)
53
53
{
54
54
Environment [ "ACTIONS_CACHE_URL" ] = cacheUrl ;
55
55
}
56
+ if ( systemConnection . Data . TryGetValue ( "GenerateIdTokenUrl" , out var generateIdTokenUrl ) && ! string . IsNullOrEmpty ( generateIdTokenUrl ) )
57
+ {
58
+ Environment [ "ACTIONS_ID_TOKEN_REQUEST_URL" ] = generateIdTokenUrl ;
59
+ }
56
60
57
61
// Resolve the target script.
58
62
string target = null ;
@@ -72,7 +76,8 @@ public async Task RunAsync(ActionRunStage stage)
72
76
// Add Telemetry to JobContext to send with JobCompleteMessage
73
77
if ( stage == ActionRunStage . Main )
74
78
{
75
- var telemetry = new ActionsStepTelemetry {
79
+ var telemetry = new ActionsStepTelemetry
80
+ {
76
81
Ref = GetActionRef ( ) ,
77
82
HasPreStep = Data . HasPre ,
78
83
HasPostStep = Data . HasPost ,
You can’t perform that action at this time.
0 commit comments