You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 96b2d13
Browse filesBrowse the repository at this point in the historyBrowse files
authored
Resolve trusted PR bundle validation base from the base branch tip (#68717)
* Initial plan
* Resolve trusted PR bundle baseline from base branch tip
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Trace trusted-base validation decisions without private Git details
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
* Test PR-head fallback when trusted base ref is missing
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
* Cover trusted-base clone and credential compatibility
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
---------
Co-authored-by: copilot-swe-agent[bot] <198982749+Copilot@users.noreply.github.com>
Co-authored-by: pelikhan <4175913+pelikhan@users.noreply.github.com>
Co-authored-by: pelikhan <jhalleux@microsoft.com>
Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com>
core.debug(merge.exitCode===1 ? "Bundle validation: trusted-base merge tree selected with conflicts" : "Bundle validation: trusted-base merge tree selected without conflicts");
core.debug("Bundle validation: fetched trusted base branch tip");
1126
+
}else{
1127
+
core.debug("Bundle validation: fetched base tip is invalid; using PR-head validation");
1128
+
}
1129
+
}catch{
1130
+
core.warning("Unable to fetch trusted PR base; using PR-head validation");
1110
1131
}
1132
+
}else{
1133
+
core.debug(signedCommits ? "Bundle validation: trusted-base resolution skipped for signed commits" : "Bundle validation: trusted-base resolution skipped because base branch metadata is unavailable");
1111
1134
}
1112
1135
awaitensureFullHistoryForBundle(
1113
1136
exec,
@@ -1185,12 +1208,42 @@ async function main(config = {}) {
0 commit comments