ProxyHawk Guard — GitHub CI onboarding

Run API contract checks automatically after each deploy. This guide works from any machine — bookmark this page.

Choose your path

Before you start

Existing deploy CI (most teams): Mac app only — record endpoints, Session routing = staging, save deploy checkpoint. No GitHub App required. See existing pipeline guide.

New repo / bootstrap PR: also install the ProxyHawk GitHub App on your repo (needed for bootstrap PR only).

  1. ProxyHawk Mac app
    • Record endpoints to Guard (e.g. GET /api/v1/profile)
    • Session routing → Environment = staging (must match CI)
    • Deploy checkpoint → your owner/repoSave deploy checkpoint

Expected pipeline

test → deploy-staging → guard-checkpoint-staging

GitHub Actions config

Repo → Settings → Secrets and variables → Actions (not Webhooks).

Variables (staging example — use the Variables tab, not Secrets):

Secrets (staging example):

Backend requirements

Troubleshooting

SymptomFix
INSTALL_GITHUB_APPBootstrap PR only — install GitHub App
SAVE_DEPLOY_CHECKPOINTSave deploy checkpoint in Mac app before bootstrap or first Guard run
no active mappingDeploy checkpoint not saved, or environment ≠ staging
Guard job skippedAdd guard-checkpoint-staging job with needs: deploy-staging
Login failed in CISet PROXYHAWK_API_EMAIL / PASSWORD; API defaults to api.proxyhawk.io