Skip to content

ci: remove redundant push triggers and add check-main guard#24

Merged
ben-miru merged 2 commits intomainfrom
ci/remove-redundant-push-triggers
Mar 26, 2026
Merged

ci: remove redundant push triggers and add check-main guard#24
ben-miru merged 2 commits intomainfrom
ci/remove-redundant-push-triggers

Conversation

@ben-miru
Copy link
Copy Markdown
Contributor

Summary

  • Remove push triggers from check-dist, CI, CodeQL, and linter workflows — branch protection strict=true makes these redundant since CI must pass on PRs before merge
  • Replace all CI job dependencies in the release workflow with a check-main ancestry guard that verifies the tag is on main before building
  • Simplify release workflow permissions (removed security-events, statuses, etc. that were only needed by the removed CI jobs)

Test plan

  • Verify all CI workflows still run on pull requests
  • Verify CI workflows no longer run on push to main
  • Verify release workflow runs check-main guard on tag push

🤖 Generated with Claude Code

ben-miru and others added 2 commits March 25, 2026 21:56
Branch protection uses strict=true, so CI already passes on PRs before
merge. Remove push triggers from all CI/lint/CodeQL workflows and replace
the CI gates in the release workflow with a check-main ancestry guard.

Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
Co-Authored-By: Claude Opus 4.6 (1M context) <noreply@anthropic.com>
@ben-miru ben-miru merged commit 40a8d48 into main Mar 26, 2026
29 checks passed
@ben-miru ben-miru deleted the ci/remove-redundant-push-triggers branch March 26, 2026 05:19
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