-
Notifications
You must be signed in to change notification settings - Fork 18
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
Feature: github bot to scan the new instance request. #70
Comments
That's a good idea! The bot could also technically check for some others components like TLS, IPv6. But I think there should always be a human review. Maybe we could implement something like "/lgtm" command only accessible to the collaborators and we could for example require two LGTM from the collaborators in order to have the instance merged. |
What's the programming language that you want to have for this bot? |
I've started to write https://github.com/dalf/botsandbox in Python (more experimental than anything else)
The idea is:
probot for node seems cleaner, but
|
I'm fine with python even though my main preferred language is JavaScript. Webhook is a good idea. Github apps is probably better because Personnal Access token gives too much access through your account if somehow it gets leaked. If the bot is open source, how are the contributors going to test it if it's needed to send requests from check.searx.space? One idea that I've: A temporary environment for each PR that is run using the IP of check.searx.space like Gitlab is already doing with Review Apps, see an example here for websites: https://youtu.be/h2pv_syqO24?t=110. Each commit gets a new temporary environment so that the developer can test each new changes. You don't even need to run the python app on your VPS, you could like to run it on a separate server (in docker) that use check.searx.space server as a proxy. I don't know how to do that, is there some kind of apps that already do this kind of thing? |
About a GitHub App run on runner, but self Hosted Runner are discouraged on public repository : https://docs.github.com/en/actions/hosting-your-own-runners/about-self-hosted-runners#self-hosted-runner-security-with-public-repositories Network connection from Github runner:
So whatever the solution I can think of, only the master branch of the bot could run the tests on check.searx.space; for the PRs and forks, the code will run on github runner. But even it is GitHub App, it requires a test environment:
|
As soon there is a new instance request, a bot can:
The bot can also scan for a comment like "@searx-bot add instance" (comment from the project maintainers) and add the instance automatically.
But once implemented, what is the value of a human review ?
The text was updated successfully, but these errors were encountered: