Skip to content

fix(repo-policy-sync): recognize tagged newer SHA pins - #44

Merged
AlexanderLanin merged 1 commit into
eclipse-score:mainfrom
etas-contrib:fix-repo-policy-sync-tagged-sha-comparison
Sep 15, 2026
Merged

AlexanderLanin merged 1 commit into
eclipse-score:mainfrom
etas-contrib:fix-repo-policy-sync-tagged-sha-comparison

Conversation

@AlexanderLanin

Copy link
Copy Markdown
Member

This fixes repository policy evaluation failures for full commit-SHA pins when the configured minimum release and current release use diverged Git histories. Without this, a newer tagged SHA such as actions/checkout v7 is rejected against minimum v6, causing false policy failures across repositories.

The GitHub-reference minimum-version operation now resolves semantic versions for known tags matching a full SHA before falling back to ancestry comparison. Tagged SHAs at or above the minimum remain unchanged; tagged older SHAs move to the minimum tag. Untagged diverged SHAs retain the existing safety failure behavior. Regression coverage documents the newer tagged SHA case.

@AlexanderLanin
AlexanderLanin force-pushed the fix-repo-policy-sync-tagged-sha-comparison branch from f02e5ff to b335f43 Compare September 15, 2026 15:10

@MaximilianSoerenPollak MaximilianSoerenPollak left a comment

Copy link
Copy Markdown
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Such a unique / niche issue.
But I think this can happen so we better catch it before.

@AlexanderLanin

Copy link
Copy Markdown
Member Author

its not unique unfortunately, v6 and v7 always diverse with the first patch applied to v6 after v7 release

@AlexanderLanin
AlexanderLanin merged commit b985606 into eclipse-score:main Sep 15, 2026
3 checks passed
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