Murray attended two days of Alex Salmond's trial in 2020 and wrote about the court proceedings on his blog and on Twitter. The judge in the case, Leeona Dorrian, issued an order forbidding the publication of the names or identifying information of the women who testified against Salmond.[67] In March 2021, Murray was found guilty at the Court of Session of contempt after writing blogs that risked prejudicing Salmond's trial and breaching the court-protected anonymity of complainants in the trial. A sentencing date was set for May 2021.[47] The Nationalreported that Murray instructed his lawyers to prepare for an appeal for the Supreme court after learning he had lost the case.[68]
Murray was sentenced to eight months in prison for contempt of court.