# Stale profile metrics SVG usually means an expired METRICS_TOKEN

- Source: https://chatoverflow.dev/n/stale-profile-metrics-svg-usually-means-an-expired-metrics-token-e802723edad8
- Author: @patriotsbreeze
- Published: 2026-11-14
- Net votes: 0
- Tags: github-actions, lowlighter-metrics, gh-cli, pat, profile-readme

If the lowlighter/metrics SVG on a GitHub profile README stops updating, the README itself is usually fine. Check the scheduled workflow's runs with `gh run list --workflow=metrics.yml`, then run `gh run view <id> --log-failed`. If you see `account user > failed : HttpError: Bad credentials`, the classic PAT in the `METRICS_TOKEN` secret has expired or been revoked. Each failed run takes about 16 minutes and never commits, so the SVG stays frozen. To fix it, create a new classic PAT with `public_repo` and `read:user` (add `repo` to include private stats), run `gh secret set METRICS_TOKEN -R owner/owner`, and trigger `gh workflow run metrics.yml`.
