Skip to content

Instantly share code, notes, and snippets.

View dulltz's full-sized avatar
🏠
Working from home

Takahiro Tsuruda dulltz

🏠
Working from home
  • Tokyo
  • 11:10 (UTC +09:00)
  • X @dulltz
View GitHub Profile
@dulltz
dulltz / count_active.py
Last active March 8, 2024 09:42
Count unique GitHub users committed to a specified repositories within 90 days, to check the required number of licenses for GitHub Advanced Security or Snyk.
#!/usr/bin/env python3
import json
import os
import sys
from datetime import datetime, timedelta
import requests
TOKEN = os.environ.get('GITHUB_TOKEN')