Compare commits
12
Commits
v2026.11.5
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
73ae7fb17c | ||
|
|
d0c1d411d3
|
||
|
|
2fa31bb8ef | ||
|
|
fcf83b8a9e
|
||
|
|
826c9e65d5
|
||
|
|
31794691e2 | ||
|
|
4639777798 | ||
|
|
644d04df7d
|
||
|
|
82fcdd1096 | ||
|
|
6fd21bfab4 | ||
|
|
e6084f031e | ||
|
|
497fb914a1
|
No files matched your search
@@ -84,7 +84,7 @@ jobs:
|
||||
|
||||
- name: Setup Node.js ${{ inputs.node-version }}
|
||||
if: ${{ inputs.package-manager != 'none' }}
|
||||
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
|
||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
cache: ${{ inputs.package-manager }}
|
||||
@@ -156,7 +156,7 @@ jobs:
|
||||
|
||||
- name: Setup Node.js ${{ inputs.node-version }}
|
||||
if: ${{ inputs.package-manager != 'none' }}
|
||||
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
|
||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
cache: ${{ inputs.package-manager }}
|
||||
|
||||
@@ -35,7 +35,7 @@ jobs:
|
||||
uses: actions/checkout@3d3c42e5aac5ba805825da76410c181273ba90b1 # v7.0.1
|
||||
|
||||
- name: Setup Ruby ${{ inputs.ruby-version }}
|
||||
uses: ruby/setup-ruby@78c62f2208e480ce3d5ae4dfd9b9e181acf48b63 # v1.344.0
|
||||
uses: ruby/setup-ruby@145243922b4465b78e04dd66294782c7de45901f # v1.345.0
|
||||
with:
|
||||
ruby-version: ${{ inputs.ruby-version }}
|
||||
bundler-cache: true # bundle install + cache automatically
|
||||
|
||||
@@ -75,7 +75,7 @@ jobs:
|
||||
uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
|
||||
- name: Setup Node.js ${{ inputs.node-version }}
|
||||
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
|
||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
cache: ${{ inputs.package-manager }}
|
||||
@@ -138,7 +138,7 @@ jobs:
|
||||
uses: pnpm/action-setup@73e46992e05b19abd31f2f3c20e0e7370d762115 # v6.1.1
|
||||
|
||||
- name: Setup Node.js ${{ inputs.node-version }}
|
||||
uses: actions/setup-node@249970729cb0ef3589644e2896645e5dc5ba9c38 # v6.5.0
|
||||
uses: actions/setup-node@949feb2413d6458794dcd2491c4babbbce0c15c1 # v7.1.0
|
||||
with:
|
||||
node-version: ${{ inputs.node-version }}
|
||||
cache: ${{ inputs.package-manager }}
|
||||
|
||||
@@ -260,7 +260,7 @@ Open questions: <…>
|
||||
- Move all 13 reusable workflows to `.gitea/workflows/`. Gitea 1.27+ expands reusable workflows server-side (nested calls, inputs, outputs, matrix supported); cross-instance URLs are not supported.
|
||||
- Apply §3.2 rules to each. Drop macOS/Swift jobs (keep the files for future, disabled with a header comment).
|
||||
- Replace caller-side assumptions (`github.event.repository.*` fields that Gitea may not populate) with explicit `inputs`. **VERIFY** per workflow.
|
||||
- Tag releases of the ops repo (`vYYYY.MM.N`) and have callers pin the **commit SHA** of the tag. `v2026.11.1` (2026-11-23) predates the notifier fix; tag the next release after merging, and pin that.
|
||||
- Tag releases of the ops repo (`vYYYY.MM.N`) and have callers pin the **commit SHA** of the tag. Latest: **`v2026.11.5`** (2026-11-26, `b93b3711b3049a879cfdfd515f7e72c23864da8f`, signed): the release-pipeline notifier names the Velopack apps released from Gitea, and `security.yml` restores .NET on Docker runners without ICU. HashTool and CommandForge pin it; the other migrated repos stay on their tag until their next change.
|
||||
- How Gitea runs a called workflow (source): it expands the call on the server. `owner/repo/…@ref` reads that repo on this instance, never `DEFAULT_ACTIONS_URL`. `./…` inside a called workflow resolves to the called workflow's own repo and commit, so the ops reusables call each other with `./`. A job-level `if:` sees the caller's `github.event_name`. Called jobs get only the secrets in the caller's `secrets:` map, plus the job token.
|
||||
- `workflow_run` on Gitea (source): `workflow_run` has no `name` and no `head_commit`, and `head_branch` is empty for tag runs. Use `github.event.workflow.name`, `workflow_run.display_title` (the commit title) and the ref after `@` in `workflow_run.path`. The ops notifiers do.
|
||||
- `.gitea/workflows/ops-lint.yml` lints every workflow here (actionlint + shellcheck; `.github/actionlint.yaml` ignores only the Gitea features actionlint does not know) and the Python.
|
||||
@@ -317,7 +317,7 @@ Runner workflow `.gitea/workflows/renovate.yml` in the same repo: runs self-host
|
||||
|
||||
**github.com without a token** (nothing GitHub-specific, §3.6). With no github.com token, Renovate skips every `github-tags` / `github-releases` dependency as `github-token-required`, every action pin included. The fix has two parts, and needs both: `RENOVATE_GITHUB_TOKEN_WARN=false` lets those dependencies reach the lookup, and the preset's package rule sends it to `git-tags` (`git ls-remote`, with annotated tags resolved to their commit). The switch alone fails, because `github-tags` asks GitHub's GraphQL API, which refuses unauthenticated calls (403). Measured 2026-11-23 on ticktune's 7 workflows under `.gitea/workflows`: 38 of 38 action pins resolved, no call to `api.github.com`. Still not covered: a `github-releases` dependency fails, visibly on the Dependency Dashboard, and PRs get no release notes from GitHub. Actions pinned to a branch (`@<sha> # main`) go through `github-digest`, which needs the API too; the second rule reads the branch head over git (`git-refs`).
|
||||
|
||||
**Vulnerabilities.** OSV alerts open their own PRs, labelled `dependencies` + `security`, without the 3-day release age that holds every other npm, NuGet, crates.io and PyPI update; the Dependency Dashboard lists the open advisories.
|
||||
**Vulnerabilities.** OSV alerts open their own PRs, labelled `dependencies` + `security`, without the 3-day release age that holds every other npm, NuGet, crates.io, PyPI and pub.dev update (pub.dev joined on 2026-11-27, renovate-config #7, for MarkLens: the block above is the file as first shipped); the Dependency Dashboard lists the open advisories.
|
||||
|
||||
**Which repos.** Gitea autodiscovery lists the repos the bot owns or collaborates on, and Renovate keeps the ones it can push to. So add `renovate-bot` as a **Write** collaborator on each repo (`poli0981` is a user, not an org: there are no teams). Create the labels `dependencies` and `security` in each repo: Renovate drops a missing label silently. `maintainer/gitea-repo-setup.ps1` (ops repo) does both steps for every repo; run it with `-DryRun` first. Onboarding stays on. A repo the bot can see without a `renovate.json` gets a "Configure Renovate" PR that proposes `local>poli0981/renovate-config`, because Renovate finds the preset by this repo's name.
|
||||
|
||||
@@ -398,7 +398,7 @@ Qodana CLI scan for any stack; replaces `JetBrains/qodana-action`.
|
||||
- CI on `ubuntu-latest`: install, lint, typecheck, build, test.
|
||||
- Deploy job on `main`: `wrangler deploy` with `CLOUDFLARE_API_TOKEN`/`CLOUDFLARE_ACCOUNT_ID`. Disconnect Cloudflare's GitHub integration for the project (maintainer, dashboard).
|
||||
- Scheduled data refresh jobs (e.g. freeitchgames.win catalog): keep as a scheduled workflow, daily, inside 13:00–16:00 UTC (decided: delays when the PC is off are accepted). Update user-facing text that promises a time (e.g. "updated daily around 20:00–23:00 Vietnam time, may be delayed").
|
||||
- **RepoLens:** its data source was the GitHub API (GraphQL, with the suspended account's token). It moves to the Gitea REST API in its own change after the CI migration: [migration/repolens.md](migration/repolens.md).
|
||||
- **RepoLens:** its data source was the GitHub API (GraphQL, with the suspended account's token). It reads the Gitea REST API anonymously since 2026-11-26 (v1.6.0); what that took is in [migration/repolens.md](migration/repolens.md).
|
||||
|
||||
### 5.4 Chrome extension: WXT + Svelte 5 (BookmarkMagic)
|
||||
- CI on `ubuntu-latest`: build + zip. Store submission stays manual or uses store API secrets (repo-level).
|
||||
@@ -479,15 +479,15 @@ None (2026-11-23). A new question goes into [`migration/README.md`](migration/RE
|
||||
| HashTool | dotnet | ☑ merged 2026-11-26 (Gitea #2) | ☑ | ☑ | ☑ | ☑ 1.3.1 on R2 (`vpk upload s3` win + linux, rclone for `<version>/`), Gitea release by CI | ☑ | `43 13 * * 1` (security), `53 13 * * 4` (qodana) |
|
||||
| youtube-generator | web + tauri | ☑ merged 2026-11-26 (Gitea #2, #3, #4) | ☑ | ☑ | ☑ | ☑ v1.7.0 on R2, site deployed by the CI `deploy` job | ☑ | `37 13 * * 3` (security), `53 15 * * 1` (rust) |
|
||||
| youtube-auto-post | python | ☐ | ☐ | ☐ | ☐ | n/a | ☐ | proposed |
|
||||
| jsonPrism | web + tauri | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
|
||||
| MarkLens | flutter | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
|
||||
| jsonPrism | web + tauri | ☑ merged 2026-11-27 (Gitea #2) | ☑ (two Discord webhooks missing, see its guide) | ☑ | ☑ | ☑ v2.3.0 on R2, site deployed by the CI `deploy` job | ☑ | `19 13 * * 5` (security) |
|
||||
| MarkLens | flutter | ☑ merged 2026-11-27 (Gitea #2, #3) | ☑ | ☑ | ☑ | ☑ v1.1.0 on R2 with the `latest.json` feed, Gitea release by CI | ☑ | `23 15 * * 5` (security) |
|
||||
| captureimg | dotnet | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
|
||||
| QuoteAtlas | web + tauri | not on Gitea yet | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
|
||||
| AppLedger | dotnet | not on Gitea yet | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
|
||||
| WardSweep | rust + dotnet | ☐ | ☐ | ☐ | ☐ | ☐ | ☐ | proposed |
|
||||
| free-steam-games-list | data + web + tauri | ☑ merged 2026-11-24 (Gitea #1) | ☑ | ☑ | ☑ | ☑ v4.8.0 / apps 2.6.0 on R2 | ☐ | `3 13 * * *` (data-daily), `49 15 * * 2` (security) |
|
||||
| free-games-itchio-list | data + web + tauri | ☑ merged 2026-11-25 (Gitea #1) | ☑ | ☑ | ☑ | ☑ v4.7.0 on R2 | ☑ | `27 13 * * *` (update), `49 13 * * *` (refresh), `1 15 * * 3` (security) |
|
||||
| RepoLens | web | ☐ | ☐ | ☐ | ☐ | n/a | ☐ | proposed |
|
||||
| RepoLens | web | ☑ merged 2026-11-26 (Gitea #2) | ☑ | ☑ | ☑ | ☑ v1.6.0 deployed by the CI `deploy` job | ☑ private (2026-11-27) | `11 13 * * *` (smoke), `33 14 * * 2` (security) |
|
||||
| content | content (submodule of poli0981-dev) | ☑ main on Gitea 2026-11-24 | n/a | n/a | n/a | n/a | ☑ | none |
|
||||
| CommandForge | dotnet | ☑ merged 2026-11-26 (Gitea #2, #3) | ☑ | ☑ | ☑ | ☑ v2.3.0 on R2 (`vpk upload s3`), Gitea release by CI | ☑ | `11 14 * * 5` (security) |
|
||||
| any repo not listed (not inventoried) | | | | | | | | |
|
||||
|
||||
@@ -39,15 +39,15 @@ For a repo without a guide, the same prompt works with only the runbook: §3.1 s
|
||||
| `HashTool` (`E:\hash`) | Avalonia/.NET 10 + NativeAOT CLI, Velopack win/linux (osx dropped) | **Done.** Merged 2026-11-26 (Gitea #2); 1.3.1 released to R2 | [hashtool.md](hashtool.md) |
|
||||
| `youtube-generator` (`E:\youtube`) | web (Workers) + Tauri + Android | **Done.** Merged 2026-11-26 (Gitea #2, #3, #4); v1.7.0 released to R2, the site deployed by the CI `deploy` job | [youtube-generator.md](youtube-generator.md) |
|
||||
| `youtube-auto-post` | Python bot on a schedule | not started | [youtube-auto-post.md](youtube-auto-post.md) |
|
||||
| `jsonPrism` | web + API (Workers) + Tauri + Android | not started | [jsonprism.md](jsonprism.md) |
|
||||
| `MarkLens` (`E:\marklens`) | Flutter desktop (Windows, Linux) | not started | [marklens.md](marklens.md) |
|
||||
| `jsonPrism` | web + API (Workers) + Tauri + Android | **Done.** Merged 2026-11-27 (Gitea #2); v2.3.0 released to R2, the site deployed by the CI `deploy` job | [jsonprism.md](jsonprism.md) |
|
||||
| `MarkLens` (`E:\marklens`) | Flutter desktop (Windows, Linux) | **Done.** Merged 2026-11-27 (Gitea #2, #3); v1.1.0 released to R2 with the `latest.json` update feed, the first Flutter repo; maintenance mode | [marklens.md](marklens.md) |
|
||||
| `captureimg` (`E:\capture\captureimg`) | .NET/WPF, Velopack | not started | [captureimg.md](captureimg.md) |
|
||||
| `QuoteAtlas` (`E:\qoute`) | web + Tauri + Android | **not on Gitea yet** (origin is still GitHub) | [quoteatlas.md](quoteatlas.md) |
|
||||
| `AppLedger` (`E:\appledger`) | .NET/WPF, Velopack, never released | **not on Gitea yet** (origin is still GitHub) | [appledger.md](appledger.md) |
|
||||
| `WardSweep` (`E:\wardsweep`) | Rust broker + .NET/WPF UI, Velopack | not started | [wardsweep.md](wardsweep.md) |
|
||||
| `free-steam-games-list` (`E:\2`) | Python data pipeline + SvelteKit on Workers + Tauri + Android | **Done.** Data restored 2026-11-24 (49 GitHub-only data commits pushed, the Worker reads Gitea); migration merged as Gitea #1; v4.8.0 / apps 2.6.0 released to R2 | [free-steam-games-list.md](free-steam-games-list.md) |
|
||||
| `free-games-itchio-list` (`E:\game`) | Python data pipeline + React on Workers + Tauri + Android | **Done.** Catalog restored 2026-11-24 from the live site (+235 games); migration merged as Gitea #1; v4.7.0 released to R2 | [free-games-itchio-list.md](free-games-itchio-list.md) |
|
||||
| `RepoLens` (`E:\repo`) | SvelteKit on Workers, data from the GitHub API | not started; **the site has no data source** | [repolens.md](repolens.md) |
|
||||
| `RepoLens` (`E:\repo`) | SvelteKit on Workers, data from the Gitea API | **Done.** Merged 2026-11-26 (Gitea #2); deployed by the CI `deploy` job, v1.6.0; repository private on Gitea | [repolens.md](repolens.md) |
|
||||
| `CommandForge` (`E:\cmd`) | .NET/WPF, Velopack | **Done.** Merged 2026-11-26 (Gitea #2, #3); v2.3.0 released to R2, the first Velopack app there | [commandforge.md](commandforge.md) |
|
||||
| any repo not listed | — | not inventoried | run the inventory |
|
||||
|
||||
@@ -58,9 +58,9 @@ Every scheduled workflow gets its own slot inside 13:00–16:00 UTC (runbook §3
|
||||
| Slot (UTC) | Days | Repo · workflow | Status |
|
||||
|---|---|---|---|
|
||||
| 13:03 | daily | free-steam-games-list · data-daily | live |
|
||||
| 13:11 | daily | RepoLens · production smoke | proposed |
|
||||
| 13:11 | daily | RepoLens · production smoke | live |
|
||||
| 13:17 | daily | softharbor · quarantine | live |
|
||||
| 13:19 | Fri | jsonPrism · security | proposed |
|
||||
| 13:19 | Fri | jsonPrism · security | live |
|
||||
| 13:23 | daily | pipdock · security-scan | proposed |
|
||||
| 13:27 | daily | free-games-itchio-list · update (ingest) | live |
|
||||
| 13:31 | daily | renovate-config · renovate | live |
|
||||
@@ -79,7 +79,7 @@ Every scheduled workflow gets its own slot inside 13:00–16:00 UTC (runbook §3
|
||||
| 14:27 | Mon | WardSweep · dependency audit | proposed |
|
||||
| 14:29 | daily | tilepier · e2e | proposed |
|
||||
| 14:31 | Thu | AppLedger · security | proposed |
|
||||
| 14:33 | Tue | RepoLens · security | proposed |
|
||||
| 14:33 | Tue | RepoLens · security | live |
|
||||
| 14:37 | Mon | ticktune · audit | live |
|
||||
| 14:41 | Fri | frameledger · security | proposed |
|
||||
| 14:43 | Mon | softharbor · link-check | live |
|
||||
@@ -91,7 +91,7 @@ Every scheduled workflow gets its own slot inside 13:00–16:00 UTC (runbook §3
|
||||
| 15:07 | Thu | tilepier · security | proposed |
|
||||
| 15:11 | Sat | captureimg · security | proposed |
|
||||
| 15:13 | Mon | ticktune · qodana | live |
|
||||
| 15:23 | Fri | MarkLens · security | proposed |
|
||||
| 15:23 | Fri | MarkLens · security (workflow lint + ops caller in one workflow) | live |
|
||||
| 15:29 | Wed | ticktune · security | live |
|
||||
| 15:33 | Sun | QuoteAtlas · security | proposed |
|
||||
| 15:37 | Tue | softharbor · security | live |
|
||||
|
||||
@@ -6,8 +6,8 @@
|
||||
commits, with the release commit), tagged and released as **v2.3.0**: Velopack feed and packages on
|
||||
`releases.poli0981.dev/commandforge/`, `2.3.0/SHA256SUMS` and a CycloneDX SBOM next to them, a Gitea release with the
|
||||
notes and links, announced through the ops `announce-release.yml` (pinned at ops v2026.11.4, `c133a00`). #3 corrected
|
||||
two docs details the release showed. Renovate's onboarding PR #1 was closed: #2 adds `renovate.json`. What the move
|
||||
found:
|
||||
two docs details the release showed; #4 moved the ops pins to v2026.11.5, whose notifier names CommandForge a Velopack
|
||||
app. Renovate's onboarding PR #1 was closed: #2 adds `renovate.json`. What the move found:
|
||||
|
||||
- **`vpk … s3` works against R2 as the runbook guessed** (vpk 1.2.161): `VPK_BUCKET`, `VPK_PREFIX=commandforge/`,
|
||||
`VPK_ENDPOINT=https://<account>.r2.cloudflarestorage.com` and the keys, no region, default checksums. vpk reads every
|
||||
|
||||
@@ -9,8 +9,8 @@ dispatched Release workflow. Renovate's onboarding PR #1 was closed (#2 adds `re
|
||||
- **The runner's Ubuntu images have no ICU.** Every .NET process died at start-up ("Couldn't find a valid ICU
|
||||
package"). Jobs that run the tests or the app install `libicu-dev`; jobs that only restore, build or run tools set
|
||||
`DOTNET_SYSTEM_GLOBALIZATION_INVARIANT=1`. The ops `security.yml` NuGetAudit job had the same problem on its default
|
||||
`ubuntu-latest` (fixed in this repo, effective from the next ops tag); HashTool calls it with
|
||||
`dotnet-runs-on: windows-latest`.
|
||||
`ubuntu-latest`; fixed in ops v2026.11.5, which HashTool pins since #3 (its NuGetAudit job runs on the default
|
||||
`ubuntu-latest` again).
|
||||
- **Avalonia 12.2's XAML compiler names generated types and methods with U+0001.** Microsoft.CodeCoverage's Cobertura
|
||||
writer cannot put that into XML: all tests passed, then the test host crashed (exit -532462766). A plain
|
||||
`dotnet test` does not show it; CI's `--coverage` does. `eng/coverage.config` limits coverage to HashTool.Core, the
|
||||
|
||||
@@ -2,6 +2,56 @@
|
||||
|
||||
> Written 2026-11-23 against `main` @ `9923c4c`. Profile: React/Vite web app + API Worker on Cloudflare (`jsonprism.poli0981.dev`) + Tauri 2 desktop (no updater) + Android APK (runbook §5.2, §5.3). Maintenance mode. Shared decisions: [README](README.md).
|
||||
|
||||
**Done 2026-11-27.** The migration, the dependency refresh and the release commit merged together as Gitea #2
|
||||
(`aab4b89`, 7 commits); the CI `deploy` job put the site live and **v2.3.0** went to R2 (Windows, Linux, Android; no
|
||||
macOS, D9). Renovate's onboarding PR (#1) was closed: #2 adds `renovate.json` with this repo's rules. What the move
|
||||
found:
|
||||
|
||||
- **Gitea's `main` matched `github/main`** (`9923c4c`, the 2.2.1 release): nothing to restore. Until #2 merged, the
|
||||
GitHub-era `maintenance-triage.yml` still ran from `main` on `pull_request_target` (owner PRs: skipped).
|
||||
- **The runner did not come up at logon**: the scheduled task "Gitea Runner" started before Docker Desktop and the
|
||||
daemon exited with "Docker Engine socket not found and docker_host config was invalid" (07:08 local); queued jobs
|
||||
of every repo waited until `Start-ScheduledTask 'Gitea Runner'` once Docker was up (the first retry, a few seconds
|
||||
later, still failed). With capacity 1, #2's first checks waited ~30 min behind free-games-itchio-list's ingest and a
|
||||
RepoLens PR.
|
||||
- **SSH push refused, HTTPS works**: `ssh://git@git.poli0981.dev:2222/…` answers "Permission denied (publickey)"
|
||||
from the agent's shell on the PC, while `https://git.poli0981.dev/…` pushes through Git Credential Manager (one
|
||||
transient "Failed to authenticate user" on a branch delete, fine on retry). The session pushed by URL and left the
|
||||
`origin` remote as it was.
|
||||
- **Two Discord secrets were not carried over**: the repo had `DISCORD_RELEASES_WEBHOOK` and `DISCORD_REPO_WEBHOOK`
|
||||
but not `DISCORD_CI_WEBHOOK` or `DISCORD_RELEASE_PIPELINE_WEBHOOK` (youtube-generator has both).
|
||||
`discord_notify.py` exits 1 without its webhook, so the release-pipeline notifier fails after every tag run until
|
||||
they exist; `DISCORD_PING_ROLE_ID` is optional.
|
||||
- **Renovate's onboarding preview** showed two proposals this repo cannot take: `ubuntu` 26.04 (it reads `runs-on:`
|
||||
labels with the `github-runners` datasource, but the labels are the PC runner's) and JDK 25. `renovate.json`
|
||||
disables `github-runners`, `node`/`java-jdk`, and the `gradle`/`gradle-wrapper` managers (the committed Tauri
|
||||
Android project). The OSV alert it raised, kotlin-gradle-plugin 1.9.25 → 2.4.20 (CVE-2026-53914, moderate,
|
||||
unsafe deserialization of the Kotlin build cache), waits for Tauri's template with the reason in `renovate.json`;
|
||||
the release job never shares or restores a build cache.
|
||||
- **Security on the first run**: Opengrep, osv-scanner and cargo-deny passed after the refresh (`url` 2.5.9,
|
||||
`cookie` 0.18.3 taken; the six Tauri-stack advisories nobody fixes yet in `src-tauri/osv-scanner.toml`, as
|
||||
youtube-generator). gitleaks found one non-secret, the Web Analytics beacon token in `src/lib/analytics.ts`, in
|
||||
`.gitleaksignore`. `npm audit`: 0 — typescript-eslint 8.74 moved to minimatch 11, which closed the last GitHub-era
|
||||
alert (GHSA-g3hv-75wg-m249).
|
||||
- **Release dry run from the branch** (web route `POST /{owner}/{repo}/actions/run?workflow=release.yml`,
|
||||
`ref=refs/heads/chore/gitea-migration`, as youtube-generator): verify, Windows (~6 min on the host), Linux
|
||||
(`ubuntu-22.04`, ~9 min) and Android (~7 min, SDK + NDK 27.2 installed in the job) all green on the first try.
|
||||
Unlike youtube-generator, this repo's committed `gen/android` `BuildTask.kt` runs the **npm** Tauri CLI, so no
|
||||
`cargo install tauri-cli` is needed. The APK's signer certificate SHA-256 is `fef0029e…b645`; the keystore on the PC
|
||||
(`E:\jsonprism-release.jks`) is PKCS12 with alias `jsonprism`, which `keytool` will not list without its password,
|
||||
so the maintainer should confirm it matches the 2.2.1 APK's.
|
||||
- **Production smoke as a reusable**: `production-smoke.yml` is `workflow_call` + `workflow_dispatch`, and `ci.yml`'s
|
||||
`smoke` job calls it with `uses: ./.gitea/workflows/production-smoke.yml` after `deploy`, the pattern
|
||||
free-games-itchio-list uses for its notifier. The first `deploy` (run 795) put `aab4b89` live; the same checks by
|
||||
hand passed while the `smoke` job still queued behind Qodana.
|
||||
- **The keystore alias is a secret, so the logs hide the app's name**: `ANDROID_KEY_ALIAS` is `jsonprism`, and the
|
||||
runner masks secret values in the run's logs, so even the `assemble` job (which gets no secret) shows `***` for
|
||||
"jsonprism" (`releases.poli0981.dev/***/2.3.0/…`). The files and notes are right; only the logs read oddly.
|
||||
- **One runner, many queues**: the PR's Qodana Rust run (Docker Desktop, cold cache) would have held the `deploy` job
|
||||
for ~25 minutes after the merge; it was cancelled, since the push to `main` runs the same scan.
|
||||
- **GnuPG on the PC**: the first signed commit failed with "sending fd … to keyboxd: Input/output error" although the
|
||||
signature was made; `gpgconf --kill keyboxd` fixed it.
|
||||
|
||||
## Decided (2026-11-23)
|
||||
|
||||
- D3: a deploy job with `wrangler deploy`, and `production-smoke.yml` runs after it. D9: no macOS bundles. D10: the Android SDK is installed in the job. D11: `pages-redirect.yml` and `announce-discussion.yml` go.
|
||||
|
||||
@@ -2,6 +2,61 @@
|
||||
|
||||
> Written 2026-11-23 against `main` @ `2d33b1c` (local clone `E:\marklens`, Gitea `poli0981/MarkLens`). Profile: Flutter desktop app (Windows installer via Inno Setup, Linux package), with an in-app update check. Docs 11 and 14 describe packaging and CI. Shared decisions: [README](README.md).
|
||||
|
||||
**Done 2026-11-27**, the first Flutter repo. The migration merged as Gitea #2 (9 commits) and #3 stacked on it (the
|
||||
remote-badge fix, Flutter 3.50.1, maintenance mode and the release commit), both by fast-forward in the UI (every
|
||||
commit stays signed); tagged and released as **v1.1.0**: the four artefacts and `SHA256SUMS` under
|
||||
`releases.poli0981.dev/marklens/1.1.0/`, the update feed `marklens/latest.json` uploaded last, a Gitea release with the
|
||||
notes and links, published (not a draft). Renovate's onboarding PR #1 was closed: #2 adds `renovate.json`. #4 ticked
|
||||
the release checklist. What the move found:
|
||||
|
||||
- **Flutter has no setup action that fits host mode.** `subosito/flutter-action`'s steps are `shell: bash`, which on
|
||||
the host-mode Windows runner can resolve to WSL's `bash.exe`. `tool/ci/install-flutter.{sh,ps1}` download the
|
||||
pinned archive from `storage.googleapis.com`, check a SHA-256 pinned in `tool/ci/flutter.env` (copied from Google's
|
||||
`releases_<os>.json`, not fetched beside the archive), and unpack it into `$RUNNER_TOOL_CACHE` (else
|
||||
`%LOCALAPPDATA%\gitea-runner\toolcache`): once per version, never system-wide on the PC. A release passes
|
||||
`--fresh`/`-Fresh` (job temp dir, no shared cache). The PC has `LongPathsEnabled=1`, which the SDK needs (its
|
||||
deepest relative path is ~186 characters). Flutter runs as root in the Docker jobs with only a warning.
|
||||
- **The Linux floor is a runner label again.** The GitHub release built the `.deb` and AppImage with `docker run -v
|
||||
"$PWD:/src"` inside the job; from inside the runner's own container that mounts a host path, not the checkout.
|
||||
`runs-on: ubuntu-22.04` *is* the build machine here (the runner's image), so the job installs
|
||||
`tool/linux/Dockerfile`'s packages there and a repo test holds the label and the Dockerfile's `FROM` together. The
|
||||
goldens, made in an `ubuntu:24.04` container, match byte for byte on the runner's `ubuntu-24.04` image.
|
||||
- **Renovate would have moved the floor.** The onboarding PR listed "update dependency ubuntu to v26" (the
|
||||
Dockerfiles' base images), and the `github-runners` datasource proposes newer `runs-on` labels. MarkLens's
|
||||
`renovate.json` disables both for Ubuntu: 22.04 is its glibc floor, 24.04 its goldens' image. **Any repo that pins
|
||||
an Ubuntu label on purpose (youtube-generator's `ubuntu-22.04` floor) wants the same rule**; a candidate for the
|
||||
preset. Also local: `constraints.flutter` (the SDK Renovate's lockfile updates install), and holds on
|
||||
`desktop_drop` < 0.9 (a `cross_file` wall) and `window_manager` < 0.6 (a nativeapi rewrite, held by decision).
|
||||
**pub joined the preset's 3-day release-age rule** (renovate-config #7): pub.dev reports `published`.
|
||||
- **The update feed (D8).** `tool/release/release_files.py` writes `latest.json` — `{app, version, tag, published,
|
||||
page, files[{name, url, sha256, size}], sha256sums}` — and the release notes from CHANGELOG. The app reads
|
||||
`version` and `page`, and opens `page` only on `git.poli0981.dev` / `releases.poli0981.dev` (the GitHub version
|
||||
opened any `html_url`). The Gitea release is published, not a draft: the banner links to it, and a draft is a 404
|
||||
for everyone else. So the tag is the release decision, and the person's checks moved before it (doc 15).
|
||||
`latest.json` answers with `cf-cache-status: DYNAMIC`.
|
||||
- **First CI run, two reds, neither in the code.** gitleaks (full history) flagged `sonar.projectKey=…` in the
|
||||
deleted `sonar-project.properties` as `generic-api-key`; `.gitleaksignore` records that fingerprint, as softharbor's
|
||||
does. The golden job died in `apt-get` on one failed DNS lookup of `archive.ubuntu.com` from the runner's Docker
|
||||
network; every `apt-get` now runs with `-o Acquire::Retries=5`. osv-scanner reads `pubspec.lock` (green).
|
||||
- **The tag run lost its Windows artifact** to `Failed to CreateArtifact … Request timeout` (all 5 attempts) after a
|
||||
good build; nothing had been published, and "Re-run failed jobs" finished the chain with the Linux artifact kept.
|
||||
- **Timings on the single runner**: a PR round ~25 min once it starts (`CI` + `Security`); the release rehearsal's
|
||||
build jobs 6 min (Windows, host) and 4.7 min (Linux), assemble 30 s. A PR stacked on another was the cheaper
|
||||
path: the lower PR's runs were cancelled and the upper one's CI covered both before both fast-forwarded.
|
||||
- **Enabling Actions on 28.4.0** is Settings → Actions → General → "Enable Repository Actions" (not in the Advanced
|
||||
settings list; `/settings/actions` 404s until it is on).
|
||||
- **Branch protection on `main`** (D6): no push, no force push, administrators included; required checks
|
||||
`CI / ci-ok (*)`, `Security / workflow-lint (*)`, `Reusable / Security / Secrets (gitleaks) (*)`,
|
||||
`Reusable / Security / Dependencies (osv-scanner) (*)`. Default merge style: fast-forward only.
|
||||
- **Installs of 1.0.0–1.0.2** ask `api.github.com/repos/poli0981/MarkLens/releases/latest`, now 404, silently by
|
||||
design: README, SECURITY.md, the CHANGELOG and the release notes tell them to install 1.1.0 once by hand.
|
||||
- **WinGet is paused**: winget-pkgs PRs come from a GitHub fork, and the pending 1.0.1 submission (#439835) points at
|
||||
dead GitHub downloads. `tool/winget/` is unchanged.
|
||||
- **Contacts**: CLAUDE.md said to leave `{{CONTACT_EMAIL}}` for the maintainer; this guide decided
|
||||
`security@`/`code@poli0981.dev`, and the runbook wins for migration topics. Reported in #2; CLAUDE.md updated.
|
||||
- **Not done**: no Discord announcement (MarkLens has no Discord webhooks; three secrets and one
|
||||
`announce-release.yml` caller would add it); the listings (SoftHarbor, poli0981.dev) still link GitHub.
|
||||
|
||||
## Decided (2026-11-23)
|
||||
|
||||
- **D8 — the update check:** a `latest.json` (version + download URLs) at `releases.poli0981.dev/marklens/latest.json`, uploaded last by each release (a `*.json` name, so the cache is bypassed); `update_service.dart` reads it. Not the Gitea API: the app stays off the forge, like every other app. `legal/PRIVACY.md` names the new host: it is a privacy statement, not just a doc.
|
||||
|
||||
@@ -2,7 +2,57 @@
|
||||
|
||||
> Written 2026-11-23 against `main` @ `ed91e72` (local clone `E:\repo`, Gitea `poli0981/repolens`). Profile: SvelteKit 3 on one Cloudflare Worker (`repolens.poli0981.dev`), a showcase of the maintainer's repositories read from the GitHub API, with a Cron Trigger (`*/10 * * * *`) that warms the cache. Maintenance mode since v1.5.0. Shared decisions: [README](README.md).
|
||||
|
||||
**The site has no data source.** Every repo it shows came from GitHub's GraphQL API with `GITHUB_TOKEN_READ`, a token of the suspended account; bug reports opened GitHub issues with `GITHUB_TOKEN_ISSUES`; the webhook was GitHub's. Restoring it is a website incident, which maintenance mode takes.
|
||||
**Done 2026-11-26.** The migration merged as Gitea #2 (fast-forward to `35b5926`, 9 commits: CI, Renovate, RL1–RL4,
|
||||
templates, docs), the CI `deploy` job put it live (version `475c73d8`, custom domain and the `*/10` cron applied),
|
||||
and **v1.6.0** followed with the dependency refresh (Gitea #3, #4). The site reads Gitea again: 24 public repos, the
|
||||
production smoke 7/7. Renovate's onboarding PR #1 was closed (#2 adds `renovate.json`). What the move found:
|
||||
|
||||
- **The repository went private on Gitea** (the owner's choice: `LICENSE` carries an internal relicensing note that
|
||||
must not be public). Outside contributions arrive by e-mail. Renovate and the runner keep working (`renovate-bot`
|
||||
is a collaborator). **Its GitLab push mirror** (added 2026-11-27, also where the confidential bug reports land) was
|
||||
created **public**, which exposed the private source and that note; it was switched to private the same day. For a
|
||||
private Gitea repo, check the mirror's visibility right after creating it.
|
||||
- **Anonymous reads (D13) settled the VERIFY items:** `GET /repos/{o}/{r}/licenses` answers (the list and repo objects
|
||||
carry `licenses` too, which can include `README`); `GET …/actions/runs` answers 401 without a token, so the build
|
||||
badge reads the head commit's statuses (`GET …/commits/{sha}/status`, anonymous, one per job, latest per context,
|
||||
`target_url` relative). `GET …/actions/tasks` is anonymous as well.
|
||||
- **No ETag, no rate-limit headers** (`Cache-Control: max-age=0, private` on every answer). RepoLens keeps each
|
||||
sub-resource with a validator instead: the repo's `updated_at` (any push moves it, Renovate's branches included)
|
||||
or the head sha. A quiet list refresh is one request; a cold one 1 + 4 per repo.
|
||||
- **No `pushed_at`:** the default branch's head commit time is the last push. Times carry the committer's offset
|
||||
(`+07:00`): normalise to UTC before comparing ISO strings. Stars and forks are always 0 without registration (hidden),
|
||||
and there are no deployments or language colours.
|
||||
- **Webhook (RL3):** Gitea signs with `X-Gitea-Signature` (hex HMAC-SHA256, no prefix) and also sends GitHub-style
|
||||
headers (read from `services/webhook/deliver.go`). The system webhook form (Site Administration → Integrations →
|
||||
Webhooks → System Webhooks) names the events Create, Delete, Push, Repository, Release, **Statuses** and
|
||||
**Workflow Run**. Gitea sends no ping, rename, transfer or visibility events.
|
||||
- **Bug reports (RL2, D14):** `GITLAB_TOKEN_ISSUES` is optional on purpose: without it the endpoint answers 503 and the
|
||||
dialog offers `code@` (no deploy waits on a GitLab token). The token set on 2026-11-26 has the **Guest** role: GitLab
|
||||
files a Guest's confidential issue but silently drops its labels, so Reporter is the role to pick. It **expires
|
||||
2027-11-26** (RepoLens docs/11 §H).
|
||||
- **System webhook (live 2026-11-27, admin hook #1):** system hooks have no Test Delivery button, so the first real
|
||||
events checked it (`npx wrangler tail repolens --format json --search webhook`): a push and two commit statuses of
|
||||
free-games-itchio-list answered `202`, refreshed the list and the detail in ~2.5 s with 13 requests, and the burst's
|
||||
later deliveries rode along.
|
||||
- **e2e in the job container:** binding `wrangler dev` and Playwright to `127.0.0.1` (runbook §6) was enough; chromium
|
||||
and webkit both ran. One PR's CI took ~10 minutes on the single runner (verify 55 s, e2e 2 min 44 s, Qodana
|
||||
2 min 48 s).
|
||||
- **Merging in the UI:** "Fast-forward only" keeps the signed commits; a UI merge commit is unsigned. Until #2 merged,
|
||||
`main`'s GitHub-era `maintenance-triage.yml` still ran on the PR (`pull_request_target` reads the base branch).
|
||||
- **Branch protection (D6):** no push, no force push; required `CI / verify (*)`, `CI / e2e (*)`,
|
||||
`Security / npm-audit (*)`, `Reusable / Security / Secrets (gitleaks) (*)`,
|
||||
`Reusable / Security / Dependencies (osv-scanner) (*)`.
|
||||
- **adapter-cloudflare 9** builds through `@cloudflare/vite-plugin` and refuses a `main` in `wrangler.jsonc`: RepoLens's
|
||||
`withScheduled` cron entry needs a redesign before it can move (left on 8.0.3). Other SvelteKit Workers with a
|
||||
Cron Trigger will meet the same wall.
|
||||
- **On the PC:** GPG signing failed with "sending fd … to keyboxd" until `gpgconf --kill keyboxd` of **Gpg4win** (git's
|
||||
`gpg.program`), not Git Bash's `gpgconf`.
|
||||
- **Done by the maintainer by 2026-11-27:** the GitLab project + `GITLAB_TOKEN_ISSUES`, the system webhook +
|
||||
`GITEA_WEBHOOK_SECRET`, the dead `GITHUB_*` Worker secrets deleted. **Still open:** disconnecting Workers Builds,
|
||||
Qodana Cloud's VCS URL, and every repo's description/website/topics on Gitea (all empty after the import; RepoLens
|
||||
shows them once set).
|
||||
|
||||
**Before the move:** the site had no data source. Every repo it showed came from GitHub's GraphQL API with `GITHUB_TOKEN_READ`, a token of the suspended account; bug reports opened GitHub issues with `GITHUB_TOKEN_ISSUES`; the webhook was GitHub's. Restoring it is a website incident, which maintenance mode takes.
|
||||
|
||||
## Decided (2026-11-23)
|
||||
|
||||
|
||||
Reference in new issue
Block a user