Right now they are, but they often rely on materials from politically unstable regions (particularly Africa), or potential political rivals (China). Also, many solar panels require polysilicon from China, which is almost certainly produced with forced labor.
https://www.csis.org/analysis/dark-spot-solar-energy-industr...
https://foreignpolicy.com/2021/04/12/clean-energy-china-xinj...
https://www.theguardian.com/environment/2022/nov/29/evidence...
And it's not just a China problem.
"On batteries, there were major issues with the mining of between 15% and 30% of the world’s cobalt in the Democratic Republic of the Congo. Amnesty International found that children, some as young as seven, were working in artisanal cobalt mines, often for less than $2 a day. Mining conditions were reportedly hazardous, and workers often did not have adequate protective equipment and were exposed to toxic dust that contributed to hard metal lung disease."
The US is trying to crack down but Europe is lagging behind on it. However, if the report's claim (which I see no reason to doubt) that China has 82% of the global polysilicon market is true, with most of their polysilicon production being in the Xinjiang region, calling solar panels (or batteries) "cheap" is fairly distasteful considering their sources.