ci: harden release workflow#2
Merged
Merged
Conversation
There was a problem hiding this comment.
Pull request overview
This PR hardens the repository’s GitHub Actions release process by tightening default permissions, pinning high-trust actions, introducing concurrency controls, and documenting the intended release trust boundary via a protected GitHub Environment.
Changes:
- Restricts workflow-level permissions and scopes write permissions to the release job only, with non-cancellable release concurrency.
- Pins
actions/checkoutandvoidzero-dev/setup-vpto full commit SHAs and adds Dependabot updates for GitHub Actions. - Adds/updates documentation describing the release boundary (protected
releaseEnvironment) and cache policy for releases.
Reviewed changes
Copilot reviewed 5 out of 5 changed files in this pull request and generated 1 comment.
Show a summary per file
| File | Description |
|---|---|
| README.md | Updates release section to reference the release Environment boundary and new distribution doc. |
| docs/DISTRIBUTION.md | Adds repository-local documentation for release flow and workflow hardening expectations. |
| .github/workflows/release.yml | Scopes permissions to the job, adds environment/concurrency, disables dependency cache for release, and pins actions. |
| .github/workflows/ci.yml | Adds CI concurrency cancellation behavior and pins actions. |
| .github/dependabot.yml | Enables weekly Dependabot updates for pinned GitHub Actions. |
💡 Add Copilot custom instructions for smarter, more guided reviews. Learn how to get started.
|
|
||
| ## Release flow | ||
|
|
||
| Pushes to `main` run CI first, then the release workflow verifies, tests, packs `dist/index.cjs`, and runs semantic-release with `github-actions[bot]`. GitHub Actions is the release actor; this repo does not need a separate release bot. |
altaywtf
force-pushed
the
codex/harden-release-pipeline
branch
from
May 13, 2026 15:58
ad63884 to
7482bbd
Compare
|
🎉 This PR is included in version 2.1.2 🎉 The release is available on GitHub release Your semantic-release bot 📦🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Harden the GitHub Action release workflow around the live
releaseGitHub Environment.Changed
releaseEnvironment with non-cancellable concurrency.Risks
Release depends on the already-created
releaseEnvironment allowingmain.Verification
actionlint .github/workflows/*.ymlgit diff --check./node_modules/.bin/vp check./node_modules/.bin/vp test./node_modules/.bin/vp packcodex-security:security-scandiff scan: no reportable findingsComplexity
Reduced.