This bot is for muttering vulnerability information.
python 3.11.0
git clone [email protected]:pigeon-sable/vuln_info_bot.git
or
git clone https://github.com/pigeon-sable/vuln_info_bot.git
cd vuln_info_bot
Do not enclose in single quotes("'").
cp .env_example .env
vim .env
ACCESS_TOKEN=123456789abcdefg
NOTIFY_TIME=20:00
If you want to run it in a local environment, you can do so with the following command.
pip install -r requirements.txt
python src/vulnerability_collector.py
Alternatively, a container can be used to run it. To execute, the following command is used. The docker repository is at the following URL.
https://hub.docker.com/repository/docker/mozsecurity/vuln_info_bot/general
docker pull mozsecurity/vuln_info_bot:latest
docker run --rm --env-file .env mozsecurity/vuln_info_bot:latest
The above docker command can also be executed with docker compose, as shown below. First, create compose.yaml and write the following.
version: "3.8"
services:
app:
image: mozsecurity/vuln_info_bot
env_file:
- .env
environment:
- TZ=Asia/Tokyo
Then simply execute the command as follows.
docker-compose up -d