Skip to content

fix(ci): Seal the star history token at runtime - #330

Merged
misonijnik merged 1 commit into
mainfrom
misonijnik/fix-star-history-ci
Aug 4, 2026
Merged

fix(ci): Seal the star history token at runtime#330
misonijnik merged 1 commit into
mainfrom
misonijnik/fix-star-history-ci

Conversation

@misonijnik

Copy link
Copy Markdown
Member

No description provided.

The daily Star History job failed with HTTP 400. The chart endpoint only
accepts a GitHub token via `sealed_token`, encrypted for the key that
star-history.com publishes in its frontend bundle; `token` and
`access_token` are ignored. The stored secret was not in that format, so
upstream rejected it before decryption and the request fell through to
star-history's shared token pool, which is currently exhausted.

Seal the token per run instead of storing a pre-sealed blob, so the
secret stays a plain, rotatable GitHub token and an upstream key rotation
only needs SEALING_PUBLIC_KEY updated.

The workflow logged a bare `HTTP 400`, discarding the response body that
explained the failure. Include the upstream reason in the error, and stop
retrying 400 and 401, which are token problems that retries cannot fix.
@misonijnik
misonijnik merged commit e56cb12 into main Aug 4, 2026
14 of 15 checks passed
@misonijnik
misonijnik deleted the misonijnik/fix-star-history-ci branch August 4, 2026 12:12
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant