Skip to content

Pin the publisher checkout to the triggering commit - #24

Merged
ptr727 merged 0 commit into
developfrom
conformance/publisher-pin-commit
Jul 23, 2026
Merged

Pin the publisher checkout to the triggering commit#24
ptr727 merged 0 commit into
developfrom
conformance/publisher-pin-commit

Conversation

@ptr727

Copy link
Copy Markdown
Owner

Summary

Surfaced by the promotion PR (#20) review. publish-release.yml passed ref: ${{ github.ref_name }} (the branch name, resolved to the moving tip at job runtime) - inherited from the console+docker reference. The hub canonical publisher pins ref: ${{ github.sha }}, the exact commit that triggered the run.

  • publish-release.yml: ref: ${{ github.sha }} so get-version, the builds, and the release tag all use one commit even if the branch advances mid-run. branch stays github.ref_name (the logical branch for config, tags, prerelease). The publisher builds one branch per run, so GITHUB_REF still matches the trigger branch and NBGV classifies prerelease correctly without needing IGNORE_GITHUB_REF.

This is a case of the fleet reference (PlexCleaner) being behind the hub canonical - conformed to the hub, not the reference.

actionlint clean.

🤖 Generated with Claude Code

CopilotAI review requested due to automatic review settings July 23, 2026 20:40
@codecov

codecovBot commented Jul 23, 2026

Copy link
Copy Markdown

Codecov Report

✅ All modified and coverable lines are covered by tests.
✅ Project coverage is 44.96%. Comparing base (a37da03) to head (523b27d).

Additional details and impacted files
@@ Coverage Diff @@## develop #24 +/- ##
========================================
Coverage 44.96% 44.96% ========================================
Files 25 25 Lines 3398 3398 Branches 259 259 ========================================
Hits 1528 1528 Misses 1824 1824 Partials 46 46 

☔ 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.

CopilotAI 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 updates the release publisher workflow to pin the reusable workflow checkout/ref to the exact commit that triggered the run, preventing mid-run branch advancement from causing version/build/tag mismatches.

Changes:

  • Pass ref: ${{ github.sha }} (commit SHA) instead of ref: ${{ github.ref_name }} (moving branch tip) into the reusable build-release-task.yml workflow.
  • Add inline documentation explaining why the publisher is pinned while still passing branch: ${{ github.ref_name }} for branch-scoped behavior/config.

@ptr727
ptr727 merged this pull request into developJul 23, 2026
13 checks passed
@ptr727
ptr727 deleted the conformance/publisher-pin-commit branch July 23, 2026 20:44
ptr727 added a commit that referenced this pull request Aug 3, 2026
Adopt the hub canonical's ref: ${{ github.sha }} in publish-release
instead of the moving ref: ${{ github.ref_name }} inherited from the
console+docker reference. This pins get-version, the builds, and the
release tag to the exact commit that triggered the run, so a branch
that advances mid-run cannot shift the published version. branch stays
github.ref_name for config, tags, and prerelease; the publisher builds
one branch per run so GITHUB_REF still matches and NBGV classifies
correctly without IGNORE_GITHUB_REF.
Co-authored-by: Claude Opus 4.8 (1M context) <noreply@anthropic.com>
Sign up for freeto 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

@ptr727