固定 workflow job key 身份契约

This commit is contained in:
2026-09-20 17:59:59 +00:00
parent 3c1fca1832
commit 3f336310af
6 changed files with 82 additions and 25 deletions
+5 -1
View File
@@ -25,7 +25,11 @@ func TestRunDerivesIdentityBeforeDispatch(t *testing.T) {
if err != nil {
t.Fatal(err)
}
task := &runnerv1.Task{Id: 42, Context: taskContext}
task := &runnerv1.Task{
Id: 42,
Context: taskContext,
WorkflowPayload: []byte("jobs:\n test:\n runs-on: [self-hosted, pod]\n steps: []\n"),
}
dispatcher := &recordingDispatcher{}
scheduler := Scheduler{TrustDomain: "ddupan.top", Dispatcher: dispatcher}