skip to content
james@kartar:~/2012/10/puppet-linter-supports-private-repos

Puppet Linter Supports Private Repos

Adding GitHub OAuth2 support to the Puppet Online Linter so authorised private repositories can now be linted on commit

1 min read

# written 14 years ago; commands, versions and links may have changed

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.

$ whoami

I'm James Turnbull. I lead engineering teams, build products, and write on technology. More about me.