-
-
Notifications
You must be signed in to change notification settings - Fork 0
Getting Started
Ferran Buireu edited this page Feb 15, 2026
·
3 revisions
This guide walks you through setting up GitHub Star Tracker from scratch.
- A GitHub account with at least one repository
- GitHub Actions enabled in your repository
GitHub Star Tracker requires a Personal Access Token (PAT) because the default GITHUB_TOKEN cannot list repositories across your account.
- Go to GitHub Settings > Tokens (classic)
- Click "Generate new token (classic)"
- Configure:
-
Note:
GitHub Star Tracker - Expiration: 90 days (recommended)
-
Scopes:
repo(private + public) orpublic_repo(public only)
-
Note:
- Click "Generate token" and copy it immediately
- In your repository, go to Settings > Secrets and variables > Actions
- Click "New repository secret":
-
Name:
GITHUB_STAR_TRACKER_TOKEN - Value: paste your PAT
-
Name:
For detailed instructions (including fine-grained tokens), see Personal Access Token (PAT).
Create .github/workflows/star-tracker.yml in your repository:
name: Track Stars
on:
schedule:
- cron: '0 0 * * *' # Daily at midnight UTC
workflow_dispatch: # Allow manual triggers
permissions:
contents: write
jobs:
track:
runs-on: ubuntu-latest
steps:
- uses: fbuireu/github-star-tracker@v1
with:
github-token: ${{ secrets.GITHUB_STAR_TRACKER_TOKEN }}That's the minimal setup. The action will track all your repositories with default settings.
- Go to your repository's Actions tab
- Select "Track Stars" from the workflow list
- Click "Run workflow" > "Run workflow"
- Wait for completion (~10-30 seconds)
After the first run:
- Go to your repository's branch selector and look for
star-tracker-data - Navigate to
https://github.com/YOUR_USER/YOUR_REPO/tree/star-tracker-data - You should see:
-
README.md— Full Markdown report -
stars-data.json— Historical data (JSON) -
stars-badge.svg— Star count badge
-
Charts and forecasts require at least 2 runs to have enough data points.
Display your total star count in your main README:
Link to the full report:
[](https://github.com/YOUR_USER/YOUR_REPO/tree/star-tracker-data)Embed the star history chart:
- The action runs on your configured schedule (daily by default)
- Each run compares current stars with the previous snapshot
- Reports and charts are updated on the
star-tracker-databranch - After 2+ runs, animated SVG charts appear in the
charts/directory - After 3+ runs, growth forecasts are computed
- Configuration — Customize filters, charts, locale, and more
- Email Notifications — Get reports sent to your inbox
- Star Trend Charts — Understand the chart types
- Examples — Advanced workflow configurations
- Troubleshooting — If something doesn't work