This workflow now uses the built-in
${{ github.token }}and does not require aMETRICS_TOKENsecret.
- Go to your repository:
whozahm3d/whozahm3d - Open Settings → Actions → General
- Under Workflow permissions, select Read and write permissions
- Save changes
This workflow uses the built-in ${{ github.token }} provided by GitHub Actions, so you do not need to create a METRICS_TOKEN secret.
Copy .github/workflows/generate-stats.yml from this ZIP into your profile repo.
The folder structure should be:
whozahm3d/ ← your profile repo root
├── README.md
├── assets/ ← will be auto-created by the Action
│ ├── stats.svg
│ ├── languages.svg
│ └── calendar.svg
└── .github/
└── workflows/
└── generate-stats.yml
- Go to your repo → Actions tab
- Click "Generate GitHub Stats" in the left sidebar
- Click "Run workflow" → "Run workflow"
- Wait ~2–3 minutes for it to complete
- The
assets/folder will appear in your repo with 3 SVG files - Your README will now display them as static images — always loaded, zero dependency on external servers
The workflow runs automatically every 12 hours and on every push to main.
No maintenance needed.
| Problem | Fix |
|---|---|
| Action fails with "Bad credentials" | Ensure repository Settings → Actions → General → Workflow permissions is set to Read and write permissions |
| Action fails with "403 forbidden" | Ensure workflow permissions are set to Read and write permissions |
| Action fails with "Resource not accessible" | Go to repo Settings → Actions → General → set Workflow permissions to "Read and write" |
| SVGs show but look wrong | Run the workflow again manually; first run sometimes has caching issues |