-
Notifications
You must be signed in to change notification settings - Fork 52
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Need a more customizable way of getting the config file #34
Comments
I'm reluctant to start adding authentication to the scalastyle plugin. Apart from it being a lot of new options (username/password, basic/digest, should we ignore certificate problems, etc. etc.), I don't think it fits. You can always make the scalastyle task dependent upon another task - this would probably give you what you need. |
That is what I am doing
I plan on adding a call to the github api to check if it has been updated instead of the 24 hours expiry. But the gist of it is here. |
Could you perhaps raise a PR to add this to the docs? If not, I will do it https://github.com/scalastyle/scalastyle.github.com/blob/master/sbt.markdown |
@le-doude Are you using personal access tokens for your solution? It'd be nice to have something that "just works" with enterprise github too. |
@2rs2ts https://gist.github.com/8d17f8355138bea4d7a5.git @matthewfarwell sure |
@le-doude Using |
Tidying the issues list, closing this issue. If this is still a problem, please reopen or raise another issue. |
To sync all our config files for various setups for our devs we use services that require some form of authentication.
For example:
We sometime use private github repos to get a file hosted on a "config" repo. We can get those files with
curl -u <some_oauth_token>:x-basic-oauth https://raw.githubusercontent/[user/org]/[reponame]/[branch]/[path_tyo_file]
It would be nice to have something that allows for more complex requests by setting headers. Or defining our own process.
The text was updated successfully, but these errors were encountered: