In March 2021 Swinney was the subject of a second motion of no confidence. As the minister in charge of liaising with the Committee on the Scottish Government Handling of Harassment Complaints, Swinney twice refused to publish legal advice requested by the committee. After two votes in Parliament failed to persuade him to publish the advice, opposition parties announced a motion of no confidence in him. Swinney u-turned and published the advice; the Scottish Greens declared they would not support the motion of no confidence and it was defeated by 65 votes to 57.