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