The GitHub account is gone, and with it the repository, Actions, Workers Builds' source, the admin's tokens and the bug-report tracker. This moves the site to Gitea following the ops runbook (poli0981/.githubdocs/GITEA-MIGRATION.md §3) and its guide docs/migration/poli0981-dev.md. Released as v2.4.0 (CHANGELOG).
Kind of change
Bug fix — publishing, deploys, bug reports and the activity widget had stopped working with GitHub
What changed
CI (.gitea/workflows)
Workflows moved from .github/workflows; triage bot removed (D2); SonarQube Cloud removed (D1).
ci.yml: Playwright's Chromium for the a11y gate (the runner image has no Chrome); new deploy job on main — wrangler deploy with the user-level Cloudflare secrets, then waits for /api/health (D3); new publish job that merges a content PR and dispatches main (D5).
Admin → Gitea API, one Worker secret GITEA_BOT_TOKEN (D12).
Bug reports → confidential GitLab issues, GITLAB_ISSUES_TOKEN, var REPORT_PROJECT (D14).
Activity widget → Gitea's public feed, no token (PD3).
Links (profile, About, console, admin) → Gitea.
Content (poli0981/content 114b8c9): links on Gitea/GitLab; privacy §4 effective 2026-11-24 (confidential GitLab issues). Gitea's content main was 16 commits behind what the site already served; it was fast-forwarded first.
## What and why
The GitHub account is gone, and with it the repository, Actions, Workers Builds' source, the admin's tokens and the bug-report tracker. This moves the site to Gitea following the ops runbook (`poli0981/.github` `docs/GITEA-MIGRATION.md` §3) and its guide `docs/migration/poli0981-dev.md`. Released as v2.4.0 (CHANGELOG).
## Kind of change
- [x] Bug fix — publishing, deploys, bug reports and the activity widget had stopped working with GitHub
## What changed
**CI (`.gitea/workflows`)**
- Workflows moved from `.github/workflows`; triage bot removed (D2); SonarQube Cloud removed (D1).
- `ci.yml`: Playwright's Chromium for the a11y gate (the runner image has no Chrome); new `deploy` job on main — `wrangler deploy` with the user-level Cloudflare secrets, then waits for `/api/health` (D3); new `publish` job that merges a content PR and dispatches main (D5).
- `security.yml` → ops `security.yml` @ v2026.11.1 (gitleaks, Opengrep, osv-scanner), weekly Wed 14:13 UTC; replaces `osv-scanner.yml`.
- `qodana.yml`: Qodana CLI 2026.3.1, native mode, report as artifact.
- `lighthouse.yml`: Chromium + nginx installed, Gitea artifact upload.
- `content-bump.yml`: Gitea API via `scripts/content-publish.mjs` (tested).
- Renovate (`local>poli0981/renovate-config`) replaces Dependabot.
**Code**
- Admin → Gitea API, one Worker secret `GITEA_BOT_TOKEN` (D12).
- Bug reports → confidential GitLab issues, `GITLAB_ISSUES_TOKEN`, var `REPORT_PROJECT` (D14).
- Activity widget → Gitea's public feed, no token (PD3).
- Links (profile, About, console, admin) → Gitea.
**Content** (`poli0981/content` 114b8c9): links on Gitea/GitLab; privacy §4 effective 2026-11-24 (confidential GitLab issues). Gitea's content `main` was 16 commits behind what the site already served; it was fast-forwarded first.
**Docs**: README, CONTRIBUTING, SECURITY, ACCESSIBILITY, notices, issue/PR templates, `.gitlab/` templates, security.txt, the design docs.
## Checks
- [x] `npm run format:check`, `lint`, `check`, `typecheck`, `knip`, `test:coverage` (99.4 % lines), `check-licenses`, `gen-notices --check`, `build`, `smoke`, `test:a11y` (160) — all green locally
## Needs verification on Gitea
- The a11y gate on the runner image with Playwright's Chromium; Lighthouse with nginx.
- The deploy job (first push to main after this merge).
- The content publish path end to end (needs `GITEA_BOT_TOKEN` first): dispatch by the bot, PR by the job token, merge by the job token.
🤖 Generated with [Claude Code](https://claude.com/claude-code)
Gitea Actions reads .gitea/workflows first (runbook §3.2 item 1). The files move
unchanged here; the changes each one needs follow in their own commits. The issue
forms and the PR template stay under .github/, which Gitea also reads.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
triage.yml ran on GitHub's issue and pull_request_target events with
actions/github-script. On Gitea outsiders cannot open issues or PRs (registration is
off), and the GitLab mirror's issues never reach Gitea Actions, so the bot has
nothing to watch. Decision D2 of the migration: the workflow and its script go;
the policy stays in CONTRIBUTING.md, and out-of-scope requests on the mirror are
closed by hand.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The maintainer removed SonarQube Cloud from every repository (D1): the sonarcloud job,
sonar-project.properties, and the coverage upload that existed only to feed it. The
unit tests still enforce 80% line coverage in the build job. Qodana and the ops
repo's Opengrep cover the analysis. The docs follow in their own commit.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitHub's ubuntu image shipped Google Chrome, nginx and a sudo user; the Gitea runner's
image (docker.gitea.com/runner-images) has neither browser nor nginx, and its job
container runs as root.
- ci.yml: the accessibility tests take Playwright's Chromium at the lockfile's version
(A11Y_CHANNEL=bundled), cached per Playwright version, when the image has no Chrome.
- lighthouse.yml: the same Chromium through CHROME_PATH, --no-sandbox for root
(lighthouserc.json), nginx installed when missing, and the reports uploaded with
christopherhx/gitea-upload-artifact: the action's own upload uses GitHub's artifact
service, which refuses other servers.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
osv-scanner.yml called Google's reusable workflow and uploaded SARIF to GitHub code
scanning, which Gitea does not have. The ops repo's security.yml (pinned to the commit
of ops v2026.11.1) runs gitleaks over the whole history, Opengrep with the JS/TS rules
and osv-scanner over package-lock.json; reports are artifacts.
Weekly on Wednesday 14:13 UTC, this repo's slot in the ops cron registry (the old
Monday 03:17 UTC run falls outside the 13:00–16:00 UTC window the runner keeps), and
on every push to main and every PR.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JetBrains/qodana-action relies on GitHub's APIs (annotations, PR comments, the SARIF
upload to code scanning), none of which Gitea has. The job now runs the Qodana CLI
2026.3.1 in native mode, downloaded at the version and SHA-256 the ops repo's
reusable-qodana.yml pins, after the same install and type generation as before.
Results still go to Qodana Cloud; the SARIF and HTML report become the qodana-report
artifact. Renovate's PRs skip the job, as Dependabot's did, and so does a run without
QODANA_TOKEN.
A local job rather than a caller of reusable-qodana.yml: the scan needs this repo's
generated binding types, and the ops tag callers pin predates the reusable workflow.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Cloudflare Workers Builds pulled from GitHub and stopped with it (the maintainer has
disconnected it). Decision D3 of the migration: a deploy job in ci.yml, on a push to
main or a dispatch on main, after `build` passed on the same commit. It rebuilds with
the production settings Workers Builds' build variables used to give (the public
Turnstile site key, the Web Analytics beacon), runs `wrangler deploy` with the
user-level CLOUDFLARE_API_TOKEN and CLOUDFLARE_ACCOUNT_ID secrets, and waits until
/api/health reports the commit.
PRs and other branches get no preview versions: that would put the Cloudflare token
within reach of a PR's code. The workflow's permissions move to the jobs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
content-bump.yml used `gh` to open the content/bump PR, enable GitHub's auto-merge and
dispatch CI. On Gitea the same steps are calls to Gitea's API with the job token, in
scripts/content-publish.mjs (unit-tested):
- `open` (content-bump.yml): open or update the PR, write in its body whether it
merges itself (<!-- publish: auto --> for Markdown/JSON, <!-- publish: review -->
when MDX changed, with a comment), and dispatch ci.yml on content/bump: a PR the job
token opens starts no workflow.
- `merge` (ci.yml's new publish job, after `build` passed on the dispatched run):
squash-merge the PR at the commit CI built when its body says auto, then dispatch
ci.yml on main, because the job token's merge commit starts no workflow either; that
run deploys. A refused merge fails the job and says so on the PR; merging by hand
deploys as usual.
Decision D5 named Gitea's merge_when_checks_succeed. The merge happens in CI instead:
the scheduled merge would also be the job token's push, so nothing would deploy it,
and the body marker gives the admin the "merges itself" flag Gitea's API lacks.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The reports went to a private GitHub repository, which went with the account.
Decision D14 of the migration: issues on the GitLab mirror (gitlab.com/poli0981/
poli0981-dev, wrangler var REPORT_PROJECT) through GitLab's API, with a new Worker
secret GITLAB_ISSUES_TOKEN (Reporter role, scope api) in place of GITHUB_ISSUES_TOKEN.
Every report is created confidential: it carries the reporter's description, route
and browser details, and the privacy policy promises only the owner sees it (the
content repo's privacy §4 now names GitLab). Reporter text cannot ping anyone or run
a GitLab quick action: a line that starts with "/" gets a zero-width space in front.
When GitLab fails, the Discord notice still carries the report (202), as before.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The admin read and wrote poli0981/content through GitHub's REST, Git Data and GraphQL
APIs with two fine-grained tokens; both went with the account. src/lib/admin/gitea.ts
replaces src/lib/admin/github.ts (decision D12 of the migration):
- One Worker secret, GITEA_BOT_TOKEN: a write:repository token of the bot user
poli0981-bot, a Write collaborator on the content and site repos only. Gitea scopes
a token by its user's access, not by repository, so the old content/publish token
split (and the admin's single-token warnings) goes; the bot still pushes nothing to
the site repo, publishing goes through content-bump.yml.
- Listing: the branch head, the recursive tree, then the file contents in batches of
50 (POST …/file-contents), instead of one GraphQL query.
- Saving: Gitea's change-files call commits every file in one commit and checks each
file's sha itself, the lock that replaces the ref fast-forward and its retry; a stale
sha becomes the same ConflictError as before.
- Publish status: the open content/bump PR, its `CI / build (…)` commit status, its
body marker for "merges itself", and the last content-bump.yml run.
- Links to commits and runs point at git.poli0981.dev; a refused token reads as
gitea_permission with what the bot needs.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The home page's activity list came from GitHub's events API, gone with the account.
Decision PD3 of the migration: the widgets cron reads
git.poli0981.dev/api/v1/users/poli0981/activities/feeds (only the owner's own
actions), which answers without a token and lists public repositories only (checked
2026-11-24). Pushes (`commit_repo`, with Gitea's real commit count) and releases
(`publish_release`, the tag) are stored in the widget's existing shape, so a feed
kept in KV from before still renders; pushes listed a second time without content are
skipped. The optional GITHUB_TOKEN of the widgets worker goes.
The widget links to the repository on Gitea, its title says Gitea, and the component
is WidgetGitea.svelte.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The dev persona's GitHub profile link becomes the Gitea profile
(git.poli0981.dev/poli0981), with a generic code-brackets glyph instead of GitHub's
mark; the About page and the console banner point at the Gitea repository.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gitea has no Dependabot. renovate.json extends the shared preset
(local>poli0981/renovate-config): actions pinned to SHAs and kept current, minor and
patch updates grouped, OSV security PRs, the same 3-day wait for new npm releases
that Dependabot's cooldown gave, the labels dependencies/security. No schedule: the
central runner's daily cron is the schedule.
Dependabot's two holds carry over as package rules: no major update of `typescript`
(TS 7 has no JS API yet; the @typescript/native alias keeps its updates) and none of
prettier-plugin-astro (its 1.x reflow is a visual change).
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
.gitmodules points src/content at git.poli0981.dev/poli0981/content; CI checks it out
from there, and so does content-bump.yml.
The bump to 114b8c9 carries the content repo's link edits for the move (licenses,
accessibility §5/§7, the project pages, third-party list) and privacy §4, effective
2026-11-24: bug reports are stored as confidential issues on GitLab instead of in a
private GitHub repository.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitHub's private vulnerability reporting went with the old repository, Gitea has none,
and issues on the GitLab mirror are public. SECURITY.md now says e-mail
(security@poli0981.dev) is the only channel and that a report opened on the mirror by
mistake is made confidential; bug reports from the site are described as confidential
GitLab issues; the out-of-scope identities name Gitea and GitLab. security.txt's
Policy points at SECURITY.md on Gitea.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- README: badges from Gitea Actions (the SonarCloud one goes), a "Where things live"
section, the clone URL, the deploy job in place of Workers Builds, GITEA_BOT_TOKEN for
local admin saves, the quality tooling as it now is.
- CONTRIBUTING (EN + VI): the canonical repo on Gitea, issues and merge requests on the
GitLab mirror, patches by e-mail to code@poli0981.dev; Renovate instead of
Dependabot; out-of-scope requests are closed by hand (the triage bot is gone); ideas
by e-mail now that Discussions are gone; the GitLab issue templates.
- ACCESSIBILITY: the Accessibility template on the mirror, the maintainer's Gitea
profile, A11Y_CHANNEL=bundled for CI's Chromium.
- THIRD-PARTY-NOTICES: Gitea and GitLab instead of GitHub; the analysis tools as run now.
- The Gitea issue forms: the config's contact links (e-mail, SECURITY.md on Gitea) and
the bug form's note on where site reports go; the PR template's links.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitLab does not read GitHub/Gitea issue forms. .gitlab/issue_templates has Bug,
Accessibility and Language in Markdown, converted from .github/ISSUE_TEMPLATE (which
Gitea still reads), each applying its label; .gitlab/merge_request_templates/Default.md
is the PR template, noting that CI runs on Gitea, not on the mirror.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The deploy is the CI job on the maintainer's runner now: it takes a few minutes, and
waits while the PC is off. The hint under the publish status says where to look, and
two comments stop naming Workers Builds.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
- 08 §0 "Forge & CI (Gitea)": where the repository and its mirror live, the runner
and the 13:00–16:00 UTC window, the workflows, the deploy job, the required check
`CI / build (*)`, Renovate, what was removed, and the ops runbook. The v2.x
workflow details (§0b) are kept with dated notes.
- 00: decision D25 (the move, v2.4.0) and notes on D9, D17, D18, D21, D23, D24.
- 02, 06, 07, 10, 11, 17: the repo tree, secrets (GITEA_BOT_TOKEN,
GITLAB_ISSUES_TOKEN, the Cloudflare Actions secrets), deploying from CI instead of
Workers Builds, confidential GitLab issues for bug reports, the Gitea activity feed,
Renovate and the security workflow in the maintenance routine.
- 01, 03, 04, 05, 13, 14, 15, 16 and the 12_LEGAL templates: GitHub mentions → Gitea
or GitLab, Lighthouse on the runner image, costs, the roadmap line for v2.4.0.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The endpoint answered 503 whenever the issue token was missing. Until the maintainer
provisions GITLAB_ISSUES_TOKEN (and whenever it is revoked) that would refuse every
report, where the dead GitHub token at least let the Discord notice through as a
degraded 202. It now needs Turnstile plus somewhere to put the report — the GitLab
issue or the Discord webhook — and skips the GitLab call when there is no token.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
PR #1's first run on Gitea: the a11y tests met ECONNREFUSED on port 4321 — the runner
(act) ends what a step started in the background when that step ends, so the preview
started in a step of its own was gone. Lighthouse never got that far: the runner
could not unpack treosh/lighthouse-ci-action (two files in its node_modules differ
only in case, on the runner's case-insensitive Windows disk).
- ci.yml: one step starts the preview, waits for it, runs the a11y tests and prints
the server log when they fail.
- lighthouse.yml: Lighthouse CI 0.16.1 through npx (scripts off), in the same step as
the preview and nginx; collect then assert, warn-only as before; reports still the
lighthouse-reports artifact.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The ops repo's security.yml scans the whole history with gitleaks' default rules, and
its generic-api-key rule flagged four values that are not secrets: the forged Access
JWT the smoke test sends on purpose, the Access application's AUD tag, the Web
Analytics site tag every page carries, and the old SonarQube Cloud project key.
.gitleaksignore lists those four findings by commit:file:rule:line, with the reason
for each; anything else still fails the job.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The second run kept the preview alive in the test step and still met ECONNREFUSED: in
the Gitea runner's container `localhost` made astro preview listen on ::1 only, while
Node's fetch in the a11y tests went to 127.0.0.1 (curl's check passed over IPv6).
CI and Lighthouse now start the preview with --host 127.0.0.1, the tests get
A11Y_BASE_URL=http://127.0.0.1:4321 and nginx proxies to 127.0.0.1. Checked locally:
160/160 a11y tests against a preview bound that way.
Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Blocking a user prevents them from interacting with repositories, such as opening or commenting on pull requests or issues. Learn more about blocking a user.
What and why
The GitHub account is gone, and with it the repository, Actions, Workers Builds' source, the admin's tokens and the bug-report tracker. This moves the site to Gitea following the ops runbook (
poli0981/.githubdocs/GITEA-MIGRATION.md§3) and its guidedocs/migration/poli0981-dev.md. Released as v2.4.0 (CHANGELOG).Kind of change
What changed
CI (
.gitea/workflows).github/workflows; triage bot removed (D2); SonarQube Cloud removed (D1).ci.yml: Playwright's Chromium for the a11y gate (the runner image has no Chrome); newdeployjob on main —wrangler deploywith the user-level Cloudflare secrets, then waits for/api/health(D3); newpublishjob that merges a content PR and dispatches main (D5).security.yml→ opssecurity.yml@ v2026.11.1 (gitleaks, Opengrep, osv-scanner), weekly Wed 14:13 UTC; replacesosv-scanner.yml.qodana.yml: Qodana CLI 2026.3.1, native mode, report as artifact.lighthouse.yml: Chromium + nginx installed, Gitea artifact upload.content-bump.yml: Gitea API viascripts/content-publish.mjs(tested).local>poli0981/renovate-config) replaces Dependabot.Code
GITEA_BOT_TOKEN(D12).GITLAB_ISSUES_TOKEN, varREPORT_PROJECT(D14).Content (
poli0981/content114b8c9): links on Gitea/GitLab; privacy §4 effective 2026-11-24 (confidential GitLab issues). Gitea's contentmainwas 16 commits behind what the site already served; it was fast-forwarded first.Docs: README, CONTRIBUTING, SECURITY, ACCESSIBILITY, notices, issue/PR templates,
.gitlab/templates, security.txt, the design docs.Checks
npm run format:check,lint,check,typecheck,knip,test:coverage(99.4 % lines),check-licenses,gen-notices --check,build,smoke,test:a11y(160) — all green locallyNeeds verification on Gitea
GITEA_BOT_TOKENfirst): dispatch by the bot, PR by the job token, merge by the job token.🤖 Generated with Claude Code