Repository navigation
fix(release): reject non-release publications - #13591
Conversation
|
No actionable comments were generated in the recent review. 🎉 ℹ️ Recent review info⚙️ Run configurationConfiguration used: Repository UI Review profile: CHILL Plan: Pro Plus Run ID: 📒 Files selected for processing (1)
🚧 Files skipped from review as they are similar to previous changes (1)
📝 WalkthroughWalkthroughThe 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)
✅ Passed checks (3 passed)
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. Comment |
There was a problem hiding this comment.
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
📒 Files selected for processing (19)
.github/workflows/readme-downloads-badge.yml.github/workflows/release-policy.ymlAGENTS.mdREADME.mdconfig/scripts/enforce-release-policy.mjsconfig/scripts/enforce-release-policy.test.mjsconfig/scripts/pin-release-download-links.mjsconfig/scripts/pin-release-download-links.test.mjsconfig/scripts/readme-download-links-workflow.test.mjsconfig/scripts/release-policy-workflow.test.mjsdocs/readme/README.es.mddocs/readme/README.fr.mddocs/readme/README.ja.mddocs/readme/README.ko.mddocs/readme/README.pt.mddocs/readme/README.zh-CN.mddocs/reference/headless-linux-server.mdsrc/main/updater.test.tssrc/main/updater.ts
There was a problem hiding this comment.
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
📒 Files selected for processing (1)
.github/workflows/release-policy.yml
* 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
Summary
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
actions/github-scriptJavaScriptgit diff --checkSecurity
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.