ci: move CommandForge to Gitea — workflows, R2 releases, links, docs; release 2.3.0 #2

Merged
poli0981 merged 12 commits from chore/gitea-migration into main 2026-11-26 02:45:40 +00:00
Owner

CommandForge leaves GitHub (the account is suspended; github.com/poli0981/CommandForge answers 404) and follows the ops runbook (poli0981/.github, docs/GITEA-MIGRATION.md), then releases 2.3.0.

Summary

  • CI on Gitea Actions (.gitea/workflows): Build (host-mode Windows runner, tool-cache SDK, Gitea artifact action), Security (actionlint + shellcheck, and the ops security.yml: gitleaks, Opengrep, osv-scanner, NuGetAudit; weekly Fri 14:11 UTC), Qodana through the ops reusable (Qodana CLI), and the Discord notifiers, all pinned at ops v2026.11.4 (c133a00) with ops_ref. CodeQL, SonarCloud (+ dotnet-sonarscanner), Scorecard and dependency review are gone (D1, D7).
  • Release to Cloudflare R2: vpk download/upload s3 (prefix commandforge/, feed last), scripts/release-assets.ps1 writes a CycloneDX SBOM, SHA256SUMS of what the version ships (fixes the checksums.txt feed-file bug) and the notes; the ops publish-r2.yml puts them under <version>/; Gitea release with links; Discord announce. A manual run on a branch is a dry run. No attestations (no OIDC).
  • Renovate replaces Dependabot (renovate.json: preset + majors need approval, no .NET/Microsoft.Extensions majors, Velopack+vpk together). Supersedes the onboarding PR #1.
  • App: Velopack HTTP source https://releases.poli0981.dev/commandforge; links to Gitea (About/Settings "Source code", user guide, accessibility, the four legal texts via ProductLinks); Report a bug opens a GitLab issue with the Bug template answered; strings in all five languages; a test keeps github.com/poli0981 out of the sources.
  • Templates and docs: .gitlab/issue_templates + MR template; README, USAGE, UPDATES, RELEASING, BUILD, PRIVACY, SECURITY, CONTRIBUTING, CODE_OF_CONDUCT, EULA, DISCLAIMER, MAINTAINERS, THIRD-PARTY-NOTICES, CLAUDE.md.
  • Deps: SonarAnalyzer.CSharp 10.37. .NET 10.0.15 / SDK 10.0.404 is the latest; no vulnerable or deprecated package.
  • Release commit: CHANGELOG 2.3.0, <Version>2.3.0.

Verification

  • Local: dotnet format --verify-no-changes, Release build (0 warnings), 442 tests pass; pack.ps1 -Version 2.3.0 + release-assets.ps1 dry run (SBOM with 9 runtime components, SHA256SUMS, notes); renovate-config-validator --strict passes; vpk reads its S3 options from VPK_*.
  • GitLab's new-issue page keeps the prefilled title and description (checked in the browser, nothing submitted).
  • Not verifiable before the tag: vpk … s3 against R2 (first Velopack app on R2; runbook VERIFY item).

🤖 Generated with Claude Code

CommandForge leaves GitHub (the account is suspended; github.com/poli0981/CommandForge answers 404) and follows the ops runbook (poli0981/.github, docs/GITEA-MIGRATION.md), then releases **2.3.0**. ## Summary - **CI on Gitea Actions** (`.gitea/workflows`): Build (host-mode Windows runner, tool-cache SDK, Gitea artifact action), Security (actionlint + shellcheck, and the ops `security.yml`: gitleaks, Opengrep, osv-scanner, NuGetAudit; weekly Fri 14:11 UTC), Qodana through the ops reusable (Qodana CLI), and the Discord notifiers, all pinned at ops v2026.11.4 (`c133a00`) with `ops_ref`. CodeQL, SonarCloud (+ dotnet-sonarscanner), Scorecard and dependency review are gone (D1, D7). - **Release to Cloudflare R2**: `vpk download/upload s3` (prefix `commandforge/`, feed last), `scripts/release-assets.ps1` writes a CycloneDX SBOM, `SHA256SUMS` of what the version ships (fixes the checksums.txt feed-file bug) and the notes; the ops `publish-r2.yml` puts them under `<version>/`; Gitea release with links; Discord announce. A manual run on a branch is a dry run. No attestations (no OIDC). - **Renovate replaces Dependabot** (`renovate.json`: preset + majors need approval, no .NET/Microsoft.Extensions majors, Velopack+vpk together). Supersedes the onboarding PR #1. - **App**: Velopack HTTP source `https://releases.poli0981.dev/commandforge`; links to Gitea (About/Settings "Source code", user guide, accessibility, the four legal texts via ProductLinks); Report a bug opens a GitLab issue with the Bug template answered; strings in all five languages; a test keeps `github.com/poli0981` out of the sources. - **Templates and docs**: `.gitlab/issue_templates` + MR template; README, USAGE, UPDATES, RELEASING, BUILD, PRIVACY, SECURITY, CONTRIBUTING, CODE_OF_CONDUCT, EULA, DISCLAIMER, MAINTAINERS, THIRD-PARTY-NOTICES, CLAUDE.md. - **Deps**: SonarAnalyzer.CSharp 10.37. .NET 10.0.15 / SDK 10.0.404 is the latest; no vulnerable or deprecated package. - **Release commit**: CHANGELOG 2.3.0, `<Version>2.3.0`. ## Verification - Local: `dotnet format --verify-no-changes`, Release build (0 warnings), 442 tests pass; `pack.ps1 -Version 2.3.0` + `release-assets.ps1` dry run (SBOM with 9 runtime components, SHA256SUMS, notes); `renovate-config-validator --strict` passes; vpk reads its S3 options from `VPK_*`. - GitLab's new-issue page keeps the prefilled title and description (checked in the browser, nothing submitted). - Not verifiable before the tag: `vpk … s3` against R2 (first Velopack app on R2; runbook VERIFY item). 🤖 Generated with [Claude Code](https://claude.com/claude-code)
poli0981 added 12 commits 2026-11-26 02:27:37 +00:00
Move build.yml to .gitea/workflows. The Windows jobs run in host mode on the
maintainer's PC, so setup-dotnet installs into the runner tool cache, the
NuGet cache is the PC's own (no actions/cache), and artifacts go through the
Gitea fork of upload-artifact (upstream v4+ refuses non-GitHub servers).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
None of them runs on Gitea: CodeQL and Scorecard upload to GitHub code
scanning (and Scorecard needs OIDC), dependency review reads GitHub's
dependency graph, and SonarQube Cloud is dropped in every repository
(ops migration decisions D1 and D7). The dotnet-sonarscanner tool goes with
it. Opengrep, gitleaks, osv-scanner and NuGetAudit (the Security workflow)
and Qodana take over.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
actionlint and shellcheck (pinned, SHA-256 verified) lint .gitea/workflows,
and the ops repo's security.yml runs gitleaks over the full history, Opengrep,
osv-scanner and a NuGetAudit restore on the Windows runner. Push to main,
pull requests, and weekly on Friday 14:11 UTC (inside the runner's
13:00-16:00 UTC window, a free slot in the ops cron registry). This replaces
CodeQL for both the C# and the workflow analysis.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
JetBrains/qodana-action needs GitHub's APIs (annotations, the PR comment, the
cache). The ops repo's reusable-qodana.yml runs the pinned, checksum-verified
Qodana CLI natively on the Windows runner instead, builds the solution first
and keeps the report as an artifact; the results still go to Qodana Cloud.
The token check job goes: Gitea has no fork pull requests, and runs started
by renovate-bot skip the scan in the reusable itself.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
announce-release and notify-ci-failure call the ops repo's .gitea reusables at
ops v2026.11.4 (c133a00), with ops_ref at the same commit so the notifier
script matches, and pass only the secrets each one declares instead of
inheriting all of them. notify-ci-failure watches Build, Qodana and Security
(SonarCloud is gone). New: notify-release-pipeline reports every Release run
to DISCORD_RELEASE_PIPELINE_WEBHOOK.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
GitHub Releases is gone. A v* tag now builds and packs on the Windows runner
as before (scripts/pack.ps1), then `vpk upload s3` puts the packages and the
feed on R2 (releases.poli0981.dev/commandforge, feed last), the ops
publish-r2.yml adds <version>/SHA256SUMS and the SBOM, a Gitea release gets
the notes and the links (no binaries), and the ops announcer posts to
Discord. R2 credentials stay in VPK_* environment variables of this
tag/dispatch-only workflow.

scripts/release-assets.ps1 (also runs locally) writes the CycloneDX SBOM
(CycloneDX tool 6.3.2, replacing GitHub's dependency-graph SBOM, decision
D7), SHA256SUMS of the files this version ships, and the notes from
CHANGELOG.md. The feed files are no longer hashed: vpk rewrites them on
upload, which is what made checksums.txt wrong for RELEASES and
releases.win.json in 2.1.0 and 2.2.0.

A manual run on a branch is a dry run: it builds, packs, reads the previous
release from R2 and keeps the files as an artifact, but uploads nothing.
Attestations go (no OIDC on Gitea). VirusTotal stays optional.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Dependabot was GitHub's. The self-hosted Renovate on Gitea applies the shared
preset local>poli0981/renovate-config (pinned action digests, non-major
updates grouped, OSV security PRs, a 3-day release age for NuGet). On top of
it, as the Dependabot rules did: majors wait for approval on the Dependency
Dashboard (maintenance mode), Microsoft.Extensions.* and the SDK in
global.json never take a major (the .NET 10 LTS line), and Velopack moves
together with the vpk CLI. Validated with renovate-config-validator
44.260.3 --strict.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
The GitHub account is gone, and with it the update feed and every link the
app opened. Velopack now reads https://releases.poli0981.dev/commandforge
(an HTTP source, ProductLinks.UpdateFeed); 404 / 403 / 429 / 5xx / offline
are still told apart, and their messages name "the update server" instead of
GitHub (Cloudflare's edge answers 403 when it refuses and 429 when it
limits).

ProductLinks: the source, user guide, accessibility statement and the four
legal texts on Gitea (the Legal pages read them from ProductLinks instead of
four hard-coded GitHub URLs); issues on the GitLab mirror, since Gitea's
registration is closed. Report a bug opens a new GitLab issue with the title
and the answered Bug template (.gitlab/issue_templates/Bug.md) as its
description; a test keeps the app's sections and checklist equal to the
template's.

Strings in all five languages: "Source code" (was "GitHub"), "Read the full
text online", "Open issue on GitLab", and the privacy and auto-check texts
name releases.poli0981.dev. Keys Settings_GitHub and LegalGateReadOnGitHub
become Settings_SourceCode and LegalGateReadFullText. A new test fails if any
source file links to github.com/poli0981 again.

The terms version stays 1.1: the update check sends the same request, only
to another host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Gitea's registration is closed, so issues and merge requests from everyone
go to gitlab.com/poli0981/CommandForge, and GitLab does not read GitHub's
issue forms. .gitlab/issue_templates gets Markdown versions of the five forms
(Bug, Feature request, Command, Translation, Accessibility) and
.gitlab/merge_request_templates/Default.md the pull request checklist, with
a note that CI runs on Gitea. ACCESSIBILITY.md sends a barrier to the GitLab
Accessibility template or accessibility@, and its test follows.

The .github forms stay for Gitea, which reads them: their links point at
Gitea's paths, private reports at security@ (GitHub's private vulnerability
reporting and Discussions are gone), and config.yml points at the mirror.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
README (badges from Gitea Actions and shields' Gitea release badge,
"Where things live", downloads from releases.poli0981.dev, checksums and
the CycloneDX SBOM instead of `gh attestation verify`, a note that 2.2.0 and
older must update once by hand), USAGE, UPDATES (the HTTP feed, the file
layout on R2, the delta from `vpk download s3`), RELEASING (the new release
workflow, its dry run, user-level R2 secrets), BUILD (the CI table on Gitea
Actions, Renovate), PRIVACY (the update check goes to releases.poli0981.dev
through Cloudflare), SECURITY (e-mail only, never a public issue on the
mirror; Qodana, gitleaks, Opengrep, osv-scanner, NuGetAudit, Renovate instead
of CodeQL, Scorecard, SonarCloud, Snyk and Dependabot; no attestations),
CONTRIBUTING (Gitea read-only, issues and merge requests on GitLab, patches
by e-mail), CODE_OF_CONDUCT, EULA, DISCLAIMER and MAINTAINERS lose their
GitHub references, THIRD-PARTY-NOTICES swaps SonarScanner for CycloneDX,
Directory.Build.props points RepositoryUrl at Gitea, and CLAUDE.md gets the
new rules 6 and 7 and a "Forge & CI" section. CHANGELOG entries stay as they
were; only the compare links at the bottom point at Gitea.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
Released 2026-11-20. The solution builds with no new warning. Everything else
is current: .NET 10.0.15 with SDK 10.0.404 (the November 2026 security
update), Velopack 1.2.161, WPF-UI 4.3.0; no vulnerable or deprecated package,
direct or transitive. Microsoft.Extensions.* 11.0 belongs to .NET 11 and
stays out (the app is on the .NET 10 LTS line).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
chore(release): 2.3.0
Build / build (pull_request) Successful in 1m40s
Build / package (pull_request) Successful in 7m16s
Reusable / Qodana / Qodana (pull_request) Successful in 6m36s
Qodana / qodana (pull_request) Successful in 6m36s
Security / workflow-lint (pull_request) Successful in 7s
Reusable / Security / Rust (cargo-deny) (pull_request) Skipped
Reusable / Security / Secrets (gitleaks) (pull_request) Successful in 9s
Reusable / Security / SAST (Opengrep) (pull_request) Successful in 18s
Reusable / Security / Dependencies (osv-scanner) (pull_request) Successful in 12s
Reusable / Security / .NET (NuGetAudit) (pull_request) Successful in 41s
Security / scan (pull_request) Successful in 1m22s
7bad284c21
CommandForge moves off GitHub: updates from releases.poli0981.dev (Cloudflare
R2), the source on Gitea, issues on the GitLab mirror, CI on Gitea Actions,
Renovate for dependencies, SHA256SUMS and a CycloneDX SBOM with every
release. Installs of 2.2.0 and older can't update themselves (they ask
GitHub) and need this version once by hand; the notes say so.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
poli0981 merged commit f59bc54e0d into main 2026-11-26 02:45:40 +00:00
Sign in to join this conversation.
No Reviewers
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: poli0981/CommandForge#2