Skip to content

Commit 280b8cd

Browse files
docs: update Star History chart (#1419)
* docs: update Star History chart Switch the README and sponsorship guide to the current Star History chart endpoint, including light and dark variants. Allowlist the public read-only sealed chart token so secret scanning does not report a false positive. Co-authored-by: ryoppippi <ryoppippi@users.noreply.github.com> * chore: exclude sealed token from spellcheck Mark the exact public Star History token allowlist line as a spellcheck exclusion so its random character sequence does not fail the documentation preflight. Co-authored-by: ryoppippi <ryoppippi@users.noreply.github.com> * chore: format sealed token allowlist Use the repository's TOML formatting and bracket the random token with the supported spellchecker block directives. Co-authored-by: ryoppippi <ryoppippi@users.noreply.github.com> * style: align Gitleaks TOML indentation Match the repository formatter's tab indentation for the multiline allowlist entry. Co-authored-by: ryoppippi <ryoppippi@users.noreply.github.com> * fix: match full Star History token URL Configure the global Gitleaks allowlist to evaluate the full finding match so the narrowly scoped sealed_token pattern suppresses the six intentional chart URLs. Co-authored-by: ryoppippi <ryoppippi@users.noreply.github.com> --------- Co-authored-by: Cursor Agent <cursoragent@cursor.com> Co-authored-by: ryoppippi <ryoppippi@users.noreply.github.com>
1 parent 654d80f commit 280b8cd

3 files changed

Lines changed: 19 additions & 12 deletions

File tree

.gitleaks.toml

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,3 +4,10 @@ useDefault = true
44
[allowlist]
55
description = "Global allowlist"
66
paths = ['''pnpm-lock\.yaml$''']
7+
# Star History sealed tokens are public, read-only chart identifiers.
8+
# spellchecker:off
9+
regexTarget = "match"
10+
regexes = [
11+
'''sealed_token=bC4-7Zs63nsOam9kdlCTUCbyCn7QuItb4yy4h8Ot0SrOeDlb5y2saMUc1CAOskhB1fl3RSZZuUmFyjAOICGnniL5wqbvTmHrbqqiIH5mpn8spRFPfjLK_w''',
12+
]
13+
# spellchecker:on

apps/ccusage/README.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -244,12 +244,12 @@ The scheduled `update pricing` workflow runs the same update and validation, the
244244

245245
## Star History
246246

247-
<a href="https://www.star-history.com/#ccusage/ccusage&Date">
248-
<picture>
249-
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=ccusage/ccusage&type=Date&theme=dark" />
250-
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=ccusage/ccusage&type=Date" />
251-
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=ccusage/ccusage&type=Date" />
252-
</picture>
247+
<a href="https://www.star-history.com/?repos=ccusage%2Fccusage&type=date&legend=top-left">
248+
<picture>
249+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=ccusage/ccusage&type=date&theme=dark&legend=top-left&sealed_token=bC4-7Zs63nsOam9kdlCTUCbyCn7QuItb4yy4h8Ot0SrOeDlb5y2saMUc1CAOskhB1fl3RSZZuUmFyjAOICGnniL5wqbvTmHrbqqiIH5mpn8spRFPfjLK_w" />
250+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=ccusage/ccusage&type=date&legend=top-left&sealed_token=bC4-7Zs63nsOam9kdlCTUCbyCn7QuItb4yy4h8Ot0SrOeDlb5y2saMUc1CAOskhB1fl3RSZZuUmFyjAOICGnniL5wqbvTmHrbqqiIH5mpn8spRFPfjLK_w" />
251+
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=ccusage/ccusage&type=date&legend=top-left&sealed_token=bC4-7Zs63nsOam9kdlCTUCbyCn7QuItb4yy4h8Ot0SrOeDlb5y2saMUc1CAOskhB1fl3RSZZuUmFyjAOICGnniL5wqbvTmHrbqqiIH5mpn8spRFPfjLK_w" />
252+
</picture>
253253
</a>
254254

255255
## License

docs/guide/sponsors.md

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -38,10 +38,10 @@ Visit [GitHub Sponsors - @ryoppippi](https://github.com/sponsors/ryoppippi) to s
3838

3939
## Star History
4040

41-
<a href="https://www.star-history.com/#ccusage/ccusage&Date">
42-
<picture>
43-
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/svg?repos=ccusage/ccusage&type=Date&theme=dark" />
44-
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/svg?repos=ccusage/ccusage&type=Date" />
45-
<img alt="Star History Chart" src="https://api.star-history.com/svg?repos=ccusage/ccusage&type=Date" />
46-
</picture>
41+
<a href="https://www.star-history.com/?repos=ccusage%2Fccusage&type=date&legend=top-left">
42+
<picture>
43+
<source media="(prefers-color-scheme: dark)" srcset="https://api.star-history.com/chart?repos=ccusage/ccusage&type=date&theme=dark&legend=top-left&sealed_token=bC4-7Zs63nsOam9kdlCTUCbyCn7QuItb4yy4h8Ot0SrOeDlb5y2saMUc1CAOskhB1fl3RSZZuUmFyjAOICGnniL5wqbvTmHrbqqiIH5mpn8spRFPfjLK_w" />
44+
<source media="(prefers-color-scheme: light)" srcset="https://api.star-history.com/chart?repos=ccusage/ccusage&type=date&legend=top-left&sealed_token=bC4-7Zs63nsOam9kdlCTUCbyCn7QuItb4yy4h8Ot0SrOeDlb5y2saMUc1CAOskhB1fl3RSZZuUmFyjAOICGnniL5wqbvTmHrbqqiIH5mpn8spRFPfjLK_w" />
45+
<img alt="Star History Chart" src="https://api.star-history.com/chart?repos=ccusage/ccusage&type=date&legend=top-left&sealed_token=bC4-7Zs63nsOam9kdlCTUCbyCn7QuItb4yy4h8Ot0SrOeDlb5y2saMUc1CAOskhB1fl3RSZZuUmFyjAOICGnniL5wqbvTmHrbqqiIH5mpn8spRFPfjLK_w" />
46+
</picture>
4747
</a>

0 commit comments

Comments
 (0)