Cut beans in 2-inch lengths. Boil until tender-crisp and drain. Peel garlic and mash with salt. Add oil, vinegar, onions and chiles. Pour over beans while hot. Toss gently. Refrigerate.