From 8960287b22ae1af98dea8ad2c795971dd703abb6 Mon Sep 17 00:00:00 2001 From: tituspijean Date: Thu, 29 Dec 2022 14:50:32 +0100 Subject: [PATCH] Add a file for storing the token --- .gitignore | 3 ++- bot-repo-cleanup/cleanup.py | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/.gitignore b/.gitignore index 97f8654..ce6c63a 100644 --- a/.gitignore +++ b/.gitignore @@ -5,6 +5,7 @@ .apps_cache builds tools/README-generator/venv/ +tools/bot-repo-cleanup/.github_token tools/autopatches/login -tools/autopatches/token \ No newline at end of file +tools/autopatches/token diff --git a/bot-repo-cleanup/cleanup.py b/bot-repo-cleanup/cleanup.py index 727ff90..f2275c6 100644 --- a/bot-repo-cleanup/cleanup.py +++ b/bot-repo-cleanup/cleanup.py @@ -5,7 +5,7 @@ from github import Github from github.Workflow import Workflow # API token for yunohost-bot, with "delete_repo" right -g = Github("TOKEN_REPLACE_ME") +g = Github(open(".github_token").read().strip()) u = g.get_user("yunohost-bot") # Let's build a minimalistic summary table