Skip to content

fix: add commit archive fallback for frozen Artifactory installs - #2582

Draft
Aryan Singh K. (aryansk) wants to merge 1 commit into
microsoft:mainfrom
aryansk:fix/2538-artifactory-commit-archive
Draft

fix: add commit archive fallback for frozen Artifactory installs#2582
Aryan Singh K. (aryansk) wants to merge 1 commit into
microsoft:mainfrom
aryansk:fix/2538-artifactory-commit-archive

Conversation

@aryansk

Copy link
Copy Markdown

Summary

Allow frozen Artifactory installs to fetch the exact locked commit SHA through GitHub's generic commit archive path.

Changes

  • when the resolved ref is a full 40-character SHA, add /archive/<sha>.zip after the existing branch/tag proxy URL candidates
  • keep branch and tag behavior unchanged for ordinary refs
  • add regression coverage for full commit SHAs and ensure short hex-like refs do not gain the fallback

Validation

Focused Artifactory URL-construction tests cover both the new immutable commit fallback and unchanged branch/tag candidates.

Fixes #2538

@aryansk

Copy link
Copy Markdown
Author

@microsoft-github-policy-service agree

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.

[BUG] Frozen Artifactory installs treat resolved commit SHAs as branch or tag names

1 participant