Skip to content

ci: harden release workflow#2

Merged
altaywtf merged 1 commit into
mainfrom
codex/harden-release-pipeline
May 13, 2026
Merged

ci: harden release workflow#2
altaywtf merged 1 commit into
mainfrom
codex/harden-release-pipeline

Conversation

@altaywtf

@altaywtf altaywtf commented May 13, 2026

Copy link
Copy Markdown
Member

Summary

Harden the GitHub Action release workflow around the live release GitHub Environment.

Changed

  • Pins checkout/setup actions and adds Dependabot refreshes.
  • Makes release permissions job-scoped.
  • Routes release through the release Environment with non-cancellable concurrency.

Risks

Release depends on the already-created release Environment allowing main.

Verification

  • actionlint .github/workflows/*.yml
  • git diff --check
  • ./node_modules/.bin/vp check
  • ./node_modules/.bin/vp test
  • ./node_modules/.bin/vp pack
  • codex-security:security-scan diff scan: no reportable findings

Complexity

Reduced.

Copilot AI review requested due to automatic review settings May 13, 2026 15:53

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

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

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/checkout and voidzero-dev/setup-vp to full commit SHAs and adds Dependabot updates for GitHub Actions.
  • Adds/updates documentation describing the release boundary (protected release Environment) 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.

Comment thread docs/DISTRIBUTION.md Outdated

## 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
altaywtf force-pushed the codex/harden-release-pipeline branch from ad63884 to 7482bbd Compare May 13, 2026 15:58
@altaywtf
altaywtf merged commit 94ed5ba into main May 13, 2026
1 check passed
@altaywtf
altaywtf deleted the codex/harden-release-pipeline branch May 13, 2026 16:06
@github-actions

Copy link
Copy Markdown

🎉 This PR is included in version 2.1.2 🎉

The release is available on GitHub release

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants