Quick Start Guide
This guide will have you tracking stars across all your repositories in under 5 minutes.Create a Personal Access Token
A PAT is required because the default
GITHUB_TOKEN cannot access your full repository list.- Navigate to GitHub Settings → Developer settings → Personal access tokens → Tokens (classic)
- Click Generate new token → Generate new token (classic)
- Give it a descriptive name like
Star Tracker - Select expiration (recommend No expiration for continuous tracking)
- Select scopes:
- For public repositories only:
public_repo - For all repositories:
repo(full control)
- For public repositories only:
- Click Generate token and copy it immediately
Add Token as Repository Secret
- Go to your repository on GitHub
- Click Settings → Secrets and variables → Actions
- Click New repository secret
- Name:
GITHUB_STAR_TRACKER_TOKEN - Value: Paste your PAT from step 1
- Click Add secret
If you want to use this action across multiple repositories, consider adding it as an organization secret instead.
Create the Workflow File
Create a new file in your repository at
.github/workflows/star-tracker.yml:The
workflow_dispatch trigger allows you to manually run the action from the Actions tab, perfect for testing!Run the Action Manually
For your first run, trigger it manually to see immediate results:
- Go to your repository on GitHub
- Click the Actions tab
- Select Track Stars from the left sidebar
- Click Run workflow → Run workflow
- Wait 30-60 seconds for completion
The first run initializes the data branch and creates the baseline snapshot. Subsequent runs will show deltas and trends.
View Your Reports
After the workflow completes:
- Go to your repository’s branches
- Switch to the
star-tracker-databranch - Explore the generated files:
README.md- Markdown report with summary tablesstars-badge.svg- Embeddable badge with star counthistory.json- Raw historical datacharts/- Animated SVG charts
What Just Happened?
Your workflow just:- Fetched all repositories accessible by your PAT
- Counted the stars on each repository
- Generated a snapshot with timestamp and metadata
- Created reports, charts, and a badge
- Committed everything to the
star-tracker-databranch
Embedding Reports in Your README
Star Count Badge
Add a live-updating badge to your repository README:YOUR_USERNAME and YOUR_REPO with your actual GitHub username and repository name.
Star History Chart
Embed the animated star history chart:Charts automatically adapt to the viewer’s color scheme (light/dark mode) using CSS media queries!
Testing the Setup
To verify everything is working:Common Quickstart Issues
Error: Resource not accessible by integration
Error: Resource not accessible by integration
This means your workflow doesn’t have at the workflow level (not in the job).
contents: write permission. Make sure you’ve added:Error: Bad credentials
Error: Bad credentials
Your PAT is invalid, expired, or incorrectly stored. Verify:
- The secret name is exactly
GITHUB_STAR_TRACKER_TOKEN - The token hasn’t expired
- The token has the correct scopes (
repoorpublic_repo)
No repositories found
No repositories found
The action found no repositories matching the default filters. This could mean:
- Your PAT only has
public_reposcope but you have no public repos - All your repositories are forks (excluded by default)
- You need to add
visibility: allif tracking private repos
Charts not showing trends
Charts not showing trends
Charts require at least 2 historical snapshots to show trends. Run the action a second time or wait for the next scheduled run.
Next Steps
Now that you have the basics working, explore more advanced features:Configuration Options
Filter repositories, customize reports, set thresholds, and more
Email Notifications
Get notified when star counts change
Chart Customization
Customize chart appearance and behavior
Advanced Examples
Complex workflows with filtering and chaining
Scheduling Best Practices
Recommended Schedule: Run daily at off-peak hours to minimize API rate limit impact.
Common Schedules
Getting Help
If you run into issues:- Check the Troubleshooting Guide for common solutions
- Review the Installation Guide for detailed setup instructions
- Search existing issues or open a new one
- Join discussions in the GitHub Discussions