Skip to content

fix(release): reject non-release publications - #13591

Merged
nwparker merged 5 commits into
mainfrom
nwparker/Prevent-bad-release
Aug 11, 2026
Merged

nwparker merged 5 commits into
mainfrom
nwparker/Prevent-bad-release

Conversation

@nwparker

@nwparker nwparker commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Summary

  • add one release-event workflow that allows only automation-authored desktop, RC, and mobile release tags
  • hide and delete unauthorized releases and tags, then restore GitHub Latest to the highest valid stable release
  • repair RC/mobile releases accidentally published as regular releases

Scope

This PR changes only .github/workflows/release-policy.yml. It does not change READMEs, download links, the updater, application code, or existing release workflows.

Testing

  • parsed the workflow YAML and compiled the embedded actions/github-script JavaScript
  • exercised authorized stable, unauthorized QA evidence, and misclassified RC paths with mocked GitHub API calls
  • git diff --check

Security

The release tag is never checked out or executed. The workflow runs from the default branch, grants only contents: write, and uses GitHub API parameters rather than shell interpolation.

Limitation

GitHub Actions receives the event after publication, so an unauthorized release can appear briefly before this workflow removes it. Preventing creation entirely requires a repository tag ruleset that allows the release automation and blocks other actors.

@coderabbitai

coderabbitai Bot commented Aug 10, 2026 •

Copy link
Copy Markdown
Contributor

Review Change Stack

No actionable comments were generated in the recent review. 🎉

ℹ️ Recent review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 80c06914-9860-4e38-b98e-977f5f2870eb

📥 Commits

Reviewing files that changed from the base of the PR and between 4466169 and d94f0ae.

📒 Files selected for processing (1)
  • .github/workflows/release-policy.yml
🚧 Files skipped from review as they are similar to previous changes (1)
  • .github/workflows/release-policy.yml

📝 Walkthrough

Walkthrough

The pull request adds a GitHub Actions workflow for published and edited releases. The workflow validates release authors and tag formats, updates authorized release metadata, identifies the latest stable release, and removes unauthorized releases and tags.

🚥 Pre-merge checks | ✅ 3 | ❌ 2

❌ Failed checks (2 warnings)

Check name Status Explanation Resolution
Description check ⚠️ Warning The description covers the change, testing, and security, but it omits Screenshots, AI Review Report, Notes, and the required cross-platform review confirmation. Add the missing template sections, state “No visual change,” document the AI review and macOS/Linux/Windows checks, and expand the security audit details.
Docstring Coverage ⚠️ Warning Docstring coverage is 0.00% which is insufficient. The required threshold is 80.00%. Write docstrings for the functions missing them to satisfy the coverage threshold.
✅ Passed checks (3 passed)
Check name Status Explanation
Title check ✅ Passed The title clearly describes the workflow's main purpose of rejecting unauthorized release publications.
Linked Issues check ✅ Passed Check skipped because no linked issues were found for this pull request.
Out of Scope Changes check ✅ Passed Check skipped because no linked issues were found for this pull request.

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 2


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: f0d778c9-3c23-43f1-8374-8f6643729079

📥 Commits

Reviewing files that changed from the base of the PR and between a63df91 and 32f47d0.

📒 Files selected for processing (19)
  • .github/workflows/readme-downloads-badge.yml
  • .github/workflows/release-policy.yml
  • AGENTS.md
  • README.md
  • config/scripts/enforce-release-policy.mjs
  • config/scripts/enforce-release-policy.test.mjs
  • config/scripts/pin-release-download-links.mjs
  • config/scripts/pin-release-download-links.test.mjs
  • config/scripts/readme-download-links-workflow.test.mjs
  • config/scripts/release-policy-workflow.test.mjs
  • docs/readme/README.es.md
  • docs/readme/README.fr.md
  • docs/readme/README.ja.md
  • docs/readme/README.ko.md
  • docs/readme/README.pt.md
  • docs/readme/README.zh-CN.md
  • docs/reference/headless-linux-server.md
  • src/main/updater.test.ts
  • src/main/updater.ts

@coderabbitai coderabbitai Bot left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actionable comments posted: 1


ℹ️ Review info
⚙️ Run configuration

Configuration used: Repository UI

Review profile: CHILL

Plan: Pro Plus

Run ID: 697dd3f7-9bce-4b89-b187-6f27c3420d34

📥 Commits

Reviewing files that changed from the base of the PR and between eea49a8 and 4466169.

📒 Files selected for processing (1)
  • .github/workflows/release-policy.yml

Comment thread .github/workflows/release-policy.yml Resolved
@nwparker
nwparker merged commit 119b1e1 into main Aug 11, 2026
44 checks passed
enrick-dev pushed a commit to enrick-dev/orca that referenced this pull request Oct 15, 2026
* fix(release): quarantine unauthorized publications

* fix(release): remove unauthorized publication tags

* fix(release): require canonical version tags

* refactor(release): narrow policy to one workflow

* fix(release): reassert latest stable release
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant