Skip to content

chore: add CI preflight gate to release workflow - #100

Merged
jflowers merged 1 commit into
unbound-force:mainfrom
jflowers:opsx/release-preflight-gate
Jun 10, 2026
Merged

jflowers merged 1 commit into
unbound-force:mainfrom
jflowers:opsx/release-preflight-gate

Conversation

@jflowers

@jflowers jflowers commented Jun 3, 2026

Copy link
Copy Markdown
Collaborator

Summary

Add a preflight job to the release workflow that validates preconditions before building and publishing release artifacts. Replicates the pattern from unbound-force/unbound-force's release workflow.

Changes

  • Trigger: push: tags: v* → workflow_dispatch with tag input
  • Preflight job (8 validation steps):
    • Tag format validation (vMAJOR.MINOR.PATCH)
    • Tag uniqueness check
    • Semver ordering verification
    • CI verification via GitHub Checks API (unit tests, integration tests, MegaLinter)
    • Unreleased commits guard
    • Idempotent annotated tag creation
    • Signing secrets detection
  • Permissions: Tightened to least-privilege per job (permissions: {} at workflow level)
  • Concurrency: Added release-${{ github.ref }} group
  • sign-macos: All GITHUB_REF_NAME → RELEASE_TAG env, added set -euo pipefail
  • AGENTS.md: Updated CI/CD section to document new release process

How to Release (new process)

gh workflow run release.yml -f tag=v1.2.3

Or use the GitHub Actions "Run workflow" button.

Closes #98

@jflowers
jflowers force-pushed the opsx/release-preflight-gate branch from b9054cb to afd9deb Compare June 3, 2026 21:44
- Switch release trigger from tag-push to workflow_dispatch
- Add preflight job: tag validation, semver ordering, CI
  verification via Checks API, unreleased commits guard
- Tighten permissions to least-privilege per job
- Add concurrency group to prevent parallel releases
- Replace GITHUB_REF_NAME with RELEASE_TAG env in sign-macos
- Update AGENTS.md CI/CD section
- Add OpenSpec change artifacts

Closes unbound-force#98

@marcusburghardt marcusburghardt 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.

LGTM. It is consistent to what we have in complyctl, for example, and actually also brings some nice improvements that we could also adopt there. Filed an issue for this: complytime/complyctl#560

@jflowers
jflowers merged commit 66b3516 into unbound-force:main Jun 10, 2026
5 checks passed
@jflowers
jflowers deleted the opsx/release-preflight-gate branch November 15, 2026 21:35
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: No status

Development

Successfully merging this pull request may close these issues.

chore: add CI gate before release artifact publishing

2 participants