Committing sins during fasting does not invalidate the fast, but it is important to repent and seek forgiveness. The primary obligation is to make up the fast for the day on which the sin was committed. Expiation is not required for these actions, but one should strive to avoid them and seek forgiveness from Allah.