@@ -92,7 +92,8 @@ func TestWorkQueueDispatchCredentialActualCompilation(t *testing.T) {
9292 } else {
9393 require .Equal (t , - 1 , mint )
9494 }
95- require .NotContains (t , string (content ), "GH_AW_WORK_QUEUE_POLICY:" )
95+ require .Contains (t , string (content ), "GH_AW_WORK_QUEUE_POLICY:" )
96+ require .Contains (t , string (content ), `\"authorization\":\"aw\"` )
9697 })
9798 }
9899}
@@ -195,7 +196,9 @@ Compile each work-queue workflow phase.
195196func TestWorkQueueNamedProfileCompilation (t * testing.T ) {
196197 dir := testutil .TempDir (t , "work-queue-named-profile-" )
197198 path := filepath .Join (dir , "worker.md" )
199+ // Keep coverage of legacy explicit profiles without repository-level scheduling.
198200 require .NoError (t , os .WriteFile (path , []byte (`---
201+ strict: false
199202on: workflow_dispatch
200203engine: claude
201204tools:
@@ -221,6 +224,7 @@ safe-outputs:
221224Use the explicitly approved profile without an implicit fallback worker.
222225` ), 0o600 ))
223226 compiler := NewCompiler (WithVersion ("integration" ))
227+ compiler .gitRoot = dir
224228 compiler .SetApprove (true )
225229 require .NoError (t , compiler .CompileWorkflow (path ))
226230 content , err := os .ReadFile (filepath .Join (dir , "worker.lock.yml" ))
@@ -569,7 +573,8 @@ Read the queue and dispatch an available Work identity.
569573 require .Contains (t , string (compiled ), `work_queue_workflows` )
570574 require .Contains (t , string (compiled ), `work_queue` )
571575 require .NotContains (t , string (compiled ), "WORK_QUEUE_HMAC_SECRET" )
572- require .NotContains (t , string (compiled ), "GH_AW_WORK_QUEUE_POLICY:" )
576+ require .Contains (t , string (compiled ), "GH_AW_WORK_QUEUE_POLICY:" )
577+ require .Contains (t , string (compiled ), `\"authorization\":\"aw\"` )
573578 inputs , err := extractWorkflowDispatchInputs (filepath .Join (workflowsDir , "dispatcher.lock.yml" ))
574579 require .NoError (t , err )
575580 require .NotContains (t , inputs , WorkQueueClaimInputName )
0 commit comments