Repository navigation
publish-release: gate the pin-push publish to the codegen App identity (release-model) - #494
Merged
Merged
Conversation
The main-only Make/Matrix.json push already limits publishing to pin changes, but a human editing the pin would also publish. Gate both entry jobs (get-version, build-base) so a push publishes only when the codegen App (or Dependabot) is the actor; a human pin edit skips and the maintainer dispatches. Schedule (weekly base refresh) and dispatch are unaffected. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## develop #494 +/- ##
========================================
Coverage 57.28% 57.28%
========================================
Files 15 15
Lines 1386 1386
Branches 89 89
========================================
Hits 794 794
Misses 573 573
Partials 19 19 ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
There was a problem hiding this comment.
Pull request overview
Gates the publish-release.yml push-triggered publish path so that a Make/Matrix.json pin push to main only publishes when the push actor is the codegen App or Dependabot, preventing accidental publishes from human pin edits while keeping schedule and manual dispatch behavior intact.
Changes:
- Add an actor-based gate to the entry jobs (
get-version,build-base) forpushevents, allowing onlyptr727-codegen[bot]anddependabot[bot]. - Update the workflow header comment to document the new publish gate.
…task) Replace the repeated event/actor/branch tests scattered across seven jobs with one plan job (publish-plan-task.yml) that computes publish + stable once; every job gates on its outputs. The release-gate policy now lives in one reusable task instead of being duplicated per job. Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
…ch serves Docker) Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
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.
Part of the fleet release-model change: a human merge never auto-publishes; only a bot (codegen/Dependabot) merge, the weekly Docker schedule, or a manual dispatch does.
NxWitness already publishes only on a main-only
Make/Matrix.jsonpush (+ weekly schedule + dispatch), but that push would also fire for a human editing the pin. This gates both entry jobs (get-version,build-base) so a push publishes only whengithub.actoris the codegen App (ptr727-codegen[bot]) /dependabot[bot]; a human pin edit skips and the maintainer dispatches. Schedule (weekly base/CVE refresh) and dispatch are unaffected (the gate isevent_name != 'push' || bot).Header updated to state the gate. Empirically validated actor values on real runs.
🤖 Generated with Claude Code