fix: pin the E2E backend SHA in the frontend contract
Frontend CI / unit (test, type-check, build) (push) Successful in 1m54s
Frontend CI / browser E2E (frontend + pinned backend) (push) Successful in 5m9s

Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
2026-10-22 13:01:49 +03:30
co-authored by Cursor
parent e3f0457dc9
commit bb29cc6bdb
3 changed files with 12 additions and 8 deletions
+3 -2
View File
@@ -54,8 +54,9 @@ jobs:
- name: Require pinned backend ref (SHA or tag)
run: |
if [ -z "${E2E_BACKEND_REF}" ]; then
echo "Set repository variable E2E_BACKEND_REF to a backend commit SHA. No fallback to main."
exit 1
E2E_BACKEND_REF="$(node -e "const c=require('./e2e/backend.contract.json'); const r=String(c.pinnedRef||''); if(!/^[0-9a-f]{40}$/i.test(r)){console.error('pinnedRef must be a full SHA'); process.exit(1)} process.stdout.write(r)")"
echo "E2E_BACKEND_REF=${E2E_BACKEND_REF}" >> "$GITHUB_ENV"
echo "Repository variable unset; using committed pinnedRef"
fi
echo "E2E_BACKEND_REF=${E2E_BACKEND_REF}"