def rule(event):
    if all(
        [
            event.deep_get("ParentImage", default="").endswith("/node"),
            any(
                [
                    all(
                        [
                            event.deep_get("Image", default="").endswith("/bun"),
                            any(
                                [
                                    "bun_environment.js"
                                    in event.deep_get("CommandLine", default=""),
                                    "https://github.com/actions/runner/releases/download/v2.330.0"
                                    in event.deep_get("CommandLine", default=""),
                                ]
                            ),
                        ]
                    ),
                    all(
                        [
                            "curl " in event.deep_get("CommandLine", default=""),
                            "-fsSL" in event.deep_get("CommandLine", default=""),
                            "https://bun.sh/install" in event.deep_get("CommandLine", default=""),
                            "bash" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                    all(
                        [
                            'bash -c "source ' in event.deep_get("CommandLine", default=""),
                            "&& echo" in event.deep_get("CommandLine", default=""),
                        ]
                    ),
                ]
            ),
        ]
    ):
        return True
    return False
