Puppet Linter Supports Private Repos

So when I first started the Puppet Online Linter there were a few things it couldn’t do. I’ve knocked most of those features out in the last couple of months. The last remaining feature was how to allow private repos to be linted. After a bit of fiddling with the GitHub API and its OAuth2 authorization this is now working too. If you want to lint a private repo then go to this URL to authorize the Puppet Linter application. It’ll capture an OAuth2 token and from then on any private repositories with the PuppetLinter GitHub Service enabled will be linted too!

Thanks to Tim Sharpe and the team at GitHub for answering my questions and pointing out that, althought undocumented, you could access raw files in private repos with an access token. Woot!

Please let me know if you run into any problems.

comments powered by Disqus