Move CI and deployment to the forge #1
Loading…
Reference in a new issue
No description provided.
Delete branch "d/forgejo-pipeline"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Forge becomes the primary: workflows move to .forgejo (build, PR review, tag-driven deploy to Megaton via the forge registry and a host git replica), the deployment compose is committed with its memory cap, and the GitHub workflows are removed now that GitHub is a backup mirror.
🤖 Claude AI Code Review
Summary
Migrates CI/CD from GitHub Actions to Forgejo workflows with a tag-driven SSH deploy, commits the deployment compose, and removes the old GitHub workflows.
Code Quality ⭐⭐⭐⭐☆
Thoughtful security handling in the deploy script — semver validation as a trust boundary, token-via-file with 0600 mode, and cleanup traps.
Issues
🟡 pr-review.yml — no
permissions:block. The old GitHub workflow declaredpull-requests: write/contents: read; the new Forgejo one relies ongithub.tokento fetch PR details and post comments but doesn't set permissions. Depending on the Forgejo Actions default token scope, comment posting (PATCH/POST to issues/comments) may fail. Verify the default token has write access or add the block.🟡 build.yml / deploy.yml —
dotnet-version: '11.0.x'withdotnet-quality: 'preview'. .NET 11 is not released; builds depend on preview SDK availability on the runner. Confirm this is intentional (carried over from the deleted workflow, so likely fine).🟢 pr-review.yml — the model id
claude-opus-4-8and footer "Claude Opus 4.8" appear to be invalid/nonexistent model names (carried over from the old file). The API call will fail with an error if this isn't a real model. Verify the model string.🟢 deploy.yml — remote
scpwrites/tmp/.registry_tokento a shared path; if a prior run's remote trap didn't fire (e.g. hard kill), a stale token could linger. Minor given the trap and 0600 mode.permissions:block (or confirm default token scope) in.forgejo/workflows/pr-review.ymlso comment posting works.claude-opus-4-8model id is a valid, callable model.📊 Tokens: 16868 input + 682 output | 💰 Cost: ~$0.1014
Generated by Claude Opus 4.8 via Gitea Actions