diff --git a/src/taskgraph/transforms/task.py b/src/taskgraph/transforms/task.py index eb68b333..9733e41d 100644 --- a/src/taskgraph/transforms/task.py +++ b/src/taskgraph/transforms/task.py @@ -1114,6 +1114,8 @@ def build_task(config, tasks): "createdForUser": config.params["owner"], "kind": config.kind, "label": task["label"], + "project": config.params["project"], + "trust-domain": config.graph_config["trust-domain"], } ) diff --git a/test/test_transforms_task.py b/test/test_transforms_task.py index 24e4c179..c4200308 100644 --- a/test/test_transforms_task.py +++ b/test/test_transforms_task.py @@ -43,6 +43,15 @@ def assert_common(task_dict): assert "extra" in task_dict["task"] assert "payload" in task_dict["task"] assert "routes" in task_dict["task"] + assert task_dict["task"].get("tags", {}) == { + "createdForUser": "some-owner", + "kind": "test", + "label": "test-fake-task-name", + "os": "linux", + "project": "some-project", + "trust-domain": "test-domain", + "worker-implementation": "docker-worker", + } assert ( "index.test-domain.v2.some-project.latest.fake.fake-job" in task_dict["task"]["routes"]