#!/bin/bash # List all repositories for the user REPOS=$(curl -s -H "Authorization: token $GITHUB_TOKEN" \ "https://api.github.com/users/$GITHUB_USER/repos?per_page=100&visibility=private" | jq -r '.[].name') echo "Fetching contributors from all repositories..." for REPO in $REPOS; do echo "🔍 Scanning $REPO..." curl -s -H "Authorization: token $GITHUB_TOKEN" \ "https://api.github.com/repos/$GITHUB_USER/$REPO/contributors" | jq -r '.[].login' done