def rule(event):
    if all(
        [
            event.deep_get("auditType", "category", default="") in ["Projects", "Repositories"],
            event.deep_get("auditType", "action", default="")
            in ["Project secret scanning rule deleted", "Repository secret scanning rule deleted"],
        ]
    ):
        return True
    return False
