Skip to content

publish-release: gate the pin-push publish to the codegen App identity (release-model) - #494

Merged
ptr727 merged 4 commits into
developfrom
feature/release-gate
Jul 11, 2026
Merged

ptr727 merged 4 commits into
developfrom
feature/release-gate

Conversation

@ptr727

@ptr727 ptr727 commented Jul 10, 2026

Copy link
Copy Markdown
Owner

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.json push (+ 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 when github.actor is 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 is event_name != 'push' || bot).

Header updated to state the gate. Empirically validated actor values on real runs.

🤖 Generated with Claude Code

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]>
Copilot AI review requested due to automatic review settings July 10, 2026 04:45
@codecov

codecov Bot commented Jul 10, 2026 •

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 57.28%. Comparing base (7b58691) to head (b0fca80).
⚠️ Report is 1 commits behind head on develop.

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.
📢 Have feedback on the report? Share it here.

🚀 New features to boost your workflow:
  • ❄️ Test Analytics: Detect flaky tests, report on failures, and find test suite problems.

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

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) for push events, allowing only ptr727-codegen[bot] and dependabot[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]>
Copilot AI review requested due to automatic review settings July 10, 2026 13:46

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

…ch serves Docker)

Co-Authored-By: Claude Opus 4.8 (1M context) <[email protected]>
Copilot AI review requested due to automatic review settings July 10, 2026 13:54

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

Copilot AI review requested due to automatic review settings July 10, 2026 13:59

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

Copilot reviewed 2 out of 2 changed files in this pull request and generated no new comments.

@ptr727
ptr727 merged commit f2c86a0 into develop Jul 11, 2026
10 checks passed
@ptr727
ptr727 deleted the feature/release-gate branch July 11, 2026 19:07
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.

2 participants