Skip to content

fix: verify promotion ancestry without checkout credentials - #4

Merged
monkseekee-max merged 1 commit into
mainfrom
fix/promotion-source-ancestry
Jul 16, 2026
Merged

fix: verify promotion ancestry without checkout credentials#4
monkseekee-max merged 1 commit into
mainfrom
fix/promotion-source-ancestry

Conversation

@monkseekee-max

Copy link
Copy Markdown
Contributor

The public promotion workflow intentionally checks out source without persisted credentials. Its subsequent git fetch therefore fails on private HMG.

Use the read-only workflow token through GitHub’s compare API to prove the built SHA is an ancestor of protected main, while preserving credential-free checkout.

Validation:

  • actionlint .github/workflows/reusable-hmg-public-promotion.yml
  • bash governance/workflow-policy/test.sh (41/41)

@monkseekee-max
monkseekee-max requested a review from a team July 16, 2026 13:51
@monkseekee-max
monkseekee-max enabled auto-merge (rebase) July 16, 2026 13:51
@monkseekee-max
monkseekee-max merged commit 61fbabf into main Jul 16, 2026
2 checks passed
@monkseekee-max
monkseekee-max deleted the fix/promotion-source-ancestry branch July 16, 2026 13:59
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