create static for private repo and better testing

to skip if not a private repo