Skip to content

The open-source app everyone uses to manage agents at work

ci: ignore stale PR API base snapshots (#12462)

Dottaf9c32513b2fe
diff --git a/.github/workflows/pr-trusted.yml b/.github/workflows/pr-trusted.yml
index 92c586408f..757a6cc562 100644
--- a/.github/workflows/pr-trusted.yml
+++ b/.github/workflows/pr-trusted.yml
@@ -115,9 +115,6 @@ jobs:
' <<< "$pr_json" >/dev/null 2>&1 \
|| fail_closed 'current pull request state does not match the triggering event'
- live_pr_base_sha="$(jq -r '.base.sha // empty' <<< "$pr_json")"
- is_commit_sha "$live_pr_base_sha" || fail_closed 'current pull request has no valid base SHA'
-
live_merge_sha="$(jq -r '.merge_commit_sha // empty' <<< "$pr_json")"
is_commit_sha "$live_merge_sha" || fail_closed 'current pull request has no valid merge SHA'
@@ -128,8 +125,6 @@ jobs:
|| fail_closed 'could not inspect the current base branch'
live_base_ref_sha="$(jq -r '.object.sha // empty' <<< "$base_ref_json")"
is_commit_sha "$live_base_ref_sha" || fail_closed 'current base branch has no valid commit SHA'
- [[ "$live_pr_base_sha" == "$live_base_ref_sha" ]] \
- || fail_closed 'current pull request base changed during validation'
base_comparison="$(gh api \
-H 'Accept: application/vnd.github+json' \