This change is split out from #20697 as requested by MarcoFalke, and allows using lint task in forked repos with personal Cirrus CI accounts.
Based on #20697, only the last commit should be reviewed.
Co-authored-by: MarcoFalke <falke.marco@gmail.com>
This pull was opened as a draft, and it did not trigger Cirrus CI build. Un-drafting and re-opening did not help. So I will close this pull and open another one.