mirror of
https://github.com/RayLabsHQ/gitea-mirror.git
synced 2026-10-30 22:21:58 +01:00
docs: restore star history chart with scoped access token
GitHub restricted the stargazers API to repo admins and collaborators, which broke the unauthenticated chart. Star History now needs a token sealed into the image URL. Uses a fine-grained token limited to this repository instead of a classic public_repo token. The stargazers endpoint requires Contents write, and classic public_repo grants that across every public repo the account can push to, so scoping it to one repo keeps the blast radius small. Legend moved to top-left to sit clear of the curve.
This commit is contained in:
1 parent
c9edc2132b
commit
67cd0e2c60
1 file changed
+4
-4
@@ -521,11 +521,11 @@ GNU Affero General Public License v3.0 (AGPL-3.0) - see [LICENSE](LICENSE) file
|
||||
|
||||
## Star History
|
||||
|
||||
<a href="https://www.star-history.com/?repos=RayLabsHQ%2Fgitea-mirror&type=date&legend=bottom-right">
|
||||
<a href="https://www.star-history.com/?repos=RayLabsHQ%2Fgitea-mirror&type=date&legend=top-left">
|
||||
<picture>
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=RayLabsHQ/gitea-mirror&type=date&theme=dark&legend=bottom-right&sealed_token=jZiDMdIujeFow8EpuBuPQ3w_4tdZBU62HO035MltZFFP_9erzd-Ob_1q0AXF_htsbi6JjjB_hlBAfdD-gABI5MnmK8IUG113RpcNF7oE4esKR2jLHZHNHA" />
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=RayLabsHQ/gitea-mirror&type=date&legend=bottom-right&sealed_token=jZiDMdIujeFow8EpuBuPQ3w_4tdZBU62HO035MltZFFP_9erzd-Ob_1q0AXF_htsbi6JjjB_hlBAfdD-gABI5MnmK8IUG113RpcNF7oE4esKR2jLHZHNHA" />
|
||||
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=RayLabsHQ/gitea-mirror&type=date&legend=bottom-right&sealed_token=jZiDMdIujeFow8EpuBuPQ3w_4tdZBU62HO035MltZFFP_9erzd-Ob_1q0AXF_htsbi6JjjB_hlBAfdD-gABI5MnmK8IUG113RpcNF7oE4esKR2jLHZHNHA" />
|
||||
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=RayLabsHQ/gitea-mirror&type=date&theme=dark&legend=top-left&sealed_token=LFtWMyznw4suPqb4AAuXEsJNxZsLAnPrarSxYyLqeFLFlV8VzOi75LAVa50puyktOwRHd0XK2Ilgi0EFPxQxkFW1_2bEhDESK08QVQenFjLbKuLQI9E5h1c4R1_m3ZIKTISQijXxiOkAKwX7DMEUD96Uto-Ge8_09sVTeeOcfGp9aXOUK6nDV2oKhDfI" />
|
||||
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=RayLabsHQ/gitea-mirror&type=date&legend=top-left&sealed_token=LFtWMyznw4suPqb4AAuXEsJNxZsLAnPrarSxYyLqeFLFlV8VzOi75LAVa50puyktOwRHd0XK2Ilgi0EFPxQxkFW1_2bEhDESK08QVQenFjLbKuLQI9E5h1c4R1_m3ZIKTISQijXxiOkAKwX7DMEUD96Uto-Ge8_09sVTeeOcfGp9aXOUK6nDV2oKhDfI" />
|
||||
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=RayLabsHQ/gitea-mirror&type=date&legend=top-left&sealed_token=LFtWMyznw4suPqb4AAuXEsJNxZsLAnPrarSxYyLqeFLFlV8VzOi75LAVa50puyktOwRHd0XK2Ilgi0EFPxQxkFW1_2bEhDESK08QVQenFjLbKuLQI9E5h1c4R1_m3ZIKTISQijXxiOkAKwX7DMEUD96Uto-Ge8_09sVTeeOcfGp9aXOUK6nDV2oKhDfI" />
|
||||
</picture>
|
||||
</a>
|
||||
|
||||
|
||||
Reference in new issue
Block a user