The Receipts Protocol · CI integration
Install RoboTruth in CI
Audit every PR your AI agent opens. Get a receipt before it merges.
name: RoboTruth Audit
on:
pull_request:
types: [opened, synchronize]
jobs:
robotruth:
runs-on: ubuntu-latest
steps:
- name: Audit PR with RoboTruth
run: |
pip install httpx --quiet
python - <<'EOF'
import httpx, os, sys
url = os.environ["PR_URL"]
r = httpx.post(
"https://robotruth.vercel.app/api/audit",
json={"url": url},
timeout=60,
)
d = r.json()["receipt"]
print(f"RoboTruth: {d['verdict']} · Grade {d['grade']}")
print(f" {d['math']}")
if d["undisclosed"]:
for f in d["undisclosed"]:
print(f" ⚠ {f['label']} — {f.get('file','')}:{f.get('line','')}")
sys.exit(0 if d["grade"] in ("A", "B") else 1)
EOF
env:
PR_URL: ${{ github.event.pull_request.html_url }}What it does
- 1Fires on every PR open and sync — no manual trigger needed.
- 2POSTs to the RoboTruth API. No API key required for public repos.
- 3Exits 1 if the grade is D or F, blocking merge when branch protection is on.
Note: The action POSTs to the public RoboTruth API. No API key required for public repos.