When you change local scale of transform of a game object, size of the collider of the game object changes automatically. Or you can also change size of the collider directly.
GameObject go = ...
go.GetComponent<BoxCollider>(); // i assume the game object has a box collider
bc.size = new Vector3(2,2,5); // im changing size of the box collider