fix(selfhost): protect manual beta Orb releases - #4183
Conversation
|
Superagent didn't find any vulnerabilities or security issues in this PR. |
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## main #4183 +/- ##
=======================================
Coverage 93.73% 93.73%
=======================================
Files 387 387
Lines 36371 36371
Branches 13316 13316
=======================================
+ Hits 34092 34093 +1
Misses 1621 1621
+ Partials 658 657 -1 🚀 New features to boost your workflow:
|
|
Warning 🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨🟨 ⏸️ Gittensory review result - manual review recommendedReview updated: 2026-07-08 10:38:20 UTC
⏸️ Suggested Action - Manual Review
Review summary Nits — 4 non-blocking
Concerns raised — review before merging
Review context
Contributor next steps
Signal definitions
🟩 Safe / merged · 🟦 Advisory · 🟨 Held for review · 🟥 Blocked / closed 💰 Earn for open-source contributions like this. Gittensor lets GitHub contributors earn for the work they already do — register to start earning →. Checked by Gittensory, a quiet PR intelligence layer for OSS maintainers.
|
Motivation
release-betaenvironment.Description
environment:expression in.github/workflows/release-selfhost.ymlsorelease-betais selected only when the event isworkflow_dispatch, the actor isgithub-actions[bot],inputs.create_github_releaseis truthy, andinputs.versioncontains-beta.; all other beta dispatches and tag pushes remain on the protectedreleaseenvironment.CREATE_GITHUB_RELEASE,RELEASE_SHA, andRUN_ACTORto theResolve versionstep and add a pre-publish check that, for automated beta dispatches, fetches the expected tag and verifies the tag object resolves to the current workflow commit before allowing the job to continue.Testing
git diff --checkto ensure no whitespace/conflict markers, which succeeded.npm run actionlint, which completed successfully (used the WASM fallback after GitHub download retries) and reported no blocking issues.Codex Task