Loading page...Загружаем страницу...正在加载页面...
AtlasRepo

GitHub Readme Stats Not Working? How to Fix 503, Rate Limits, 403 and Broken Images

说明与用途

使用 GitHub Actions 在本地生成 SVG,替换 README 中的外部图像,以避免 503、403 和图片损坏问题。

问题

GitHub profile README cards generated by public services become broken due to service downtime, rate limits, or API restrictions.

结果

The README displays functional, up-to-date stats cards without relying on external services, eliminating 503, 403, and broken image issues.

工作流

  • 1. Create a GitHub Actions workflow (.github/workflows/grs.yml) that runs on a schedule and uses stats-organization/github-readme-stats-action to generate stats and top-langs SVGs.
  • 2. Commit the generated SVGs to the repository (profile/stats.svg, profile/top-langs.svg).
  • 3. Update the README to reference the local SVG files.
  • 4. (Optional) Add a second workflow (.github/workflows/streak-stats.yml) using DenverCoder1/github-readme-streak-stats to generate a streak SVG and commit it.
  • 5. Store any required PATs as repository secrets and reference them in the workflow.
  • 6. Push changes; the workflow will run daily and keep the cards up to date.

证据

GitHub Actions or self-host

The public instance is "best-effort and can be unreliable due to rate limits and traffic spikes."

Add .github/workflows/grs.yml in your USERNAME/USERNAME repo.

git config user.name "github-actions[bot]"

  • 记录日期: 2026-10-14T15:56:10.042Z