← Files ProdVerityARCHIVED FILE
source/.github/workflows/prodverity-production-proof.yml
4.41 KB · Nov 15, 2026 · 06:42 UTC
name: ProdVerity Production Proof
on:
workflow_run:
workflows: ["GSA Production Deploy"]
types: [completed]
permissions:
contents: read
jobs:
prove:
if: ${{ github.event.workflow_run.conclusion == 'success' }}
runs-on: ubuntu-latest
timeout-minutes: 10
steps:
- name: Verify deployed revision and public surfaces
shell: bash
env:
EXPECTED_SHA: ${{ github.event.workflow_run.head_sha }}
RUN_ID: ${{ github.event.workflow_run.id }}
run: |
set -euo pipefail
base='https://greatskillsacademy.com'
marker=''
for attempt in $(seq 1 18); do
marker="$(curl -fsSL -H 'Cache-Control: no-cache' "$base/build-version.json?prodverity_proof=$RUN_ID" || true)"
if printf '%s' "$marker" | grep -q "$EXPECTED_SHA"; then
echo "ProdVerity production commit verified on attempt $attempt: $EXPECTED_SHA"
break
fi
if [ "$attempt" -eq 18 ]; then
echo "::error::Expected production revision $EXPECTED_SHA is not live"
printf '%s\n' "$marker"
exit 1
fi
sleep 5
done
health="$(curl -fsSL -H 'Cache-Control: no-cache' "$base/prodverity/health?proof=$RUN_ID")"
printf '%s' "$health" | grep -q '"service":"prodverity"'
printf '%s' "$health" | grep -q '"public":true'
printf '%s' "$health" | grep -q '"mutations":false'
printf '%s' "$health" | grep -q '"private_networks_blocked":true'
manifest="$(curl -fsSL -H 'Cache-Control: no-cache' "$base/.well-known/prodverity.json?proof=$RUN_ID")"
printf '%s' "$manifest" | grep -q '"version": "1"'
printf '%s' "$manifest" | grep -q '"name": "Great Skills Academy"'
printf '%s' "$manifest" | grep -q '"path": "/build-version.json"'
curl -fsSL -H 'Cache-Control: no-cache' "$base/prodverity/?proof=$RUN_ID" | grep -q 'ProdVerity'
curl -fsSL -H 'Cache-Control: no-cache' "$base/prodverity/privacy.html?proof=$RUN_ID" | grep -q 'Privacy Policy'
curl -fsSL -H 'Cache-Control: no-cache' "$base/prodverity/terms.html?proof=$RUN_ID" | grep -q 'Terms of Use'
curl -fsSL -H 'Cache-Control: no-cache' "$base/prodverity/support.html?proof=$RUN_ID" | grep -q 'Support'
- name: Prove public MCP discovery works without exposing private GSA MCP
shell: bash
env:
RUN_ID: ${{ github.event.workflow_run.id }}
run: |
set -euo pipefail
base='https://greatskillsacademy.com'
init='{"jsonrpc":"2.0","id":1,"method":"initialize","params":{"protocolVersion":"2025-06-18","capabilities":{},"clientInfo":{"name":"prodverity-production-proof","version":"1"}}}'
init_status="$(curl -sS -o /tmp/prodverity-init -D /tmp/prodverity-init-headers -w '%{http_code}' \
-X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H 'MCP-Protocol-Version: 2025-06-18' \
--data "$init" \
"$base/prodverity/mcp?proof=$RUN_ID")"
test "$init_status" = '200'
grep -q 'prodverity' /tmp/prodverity-init
tools='{"jsonrpc":"2.0","id":2,"method":"tools/list","params":{}}'
tools_status="$(curl -sS -o /tmp/prodverity-tools -D /tmp/prodverity-tools-headers -w '%{http_code}' \
-X POST \
-H 'Content-Type: application/json' \
-H 'Accept: application/json, text/event-stream' \
-H 'MCP-Protocol-Version: 2025-06-18' \
--data "$tools" \
"$base/prodverity/mcp?proof=$RUN_ID")"
test "$tools_status" = '200'
grep -q 'prodverity.inspect_web_app' /tmp/prodverity-tools
grep -q 'prodverity.check_security_headers' /tmp/prodverity-tools
grep -q 'prodverity.discover_manifest' /tmp/prodverity-tools
grep -q 'prodverity.verify_production' /tmp/prodverity-tools
private_status="$(curl -sS -o /tmp/private-mcp -D /tmp/private-mcp-headers -w '%{http_code}' \
-X POST \
-H 'Content-Type: application/json' \
--data "$init" \
"$base/mcp")"
test "$private_status" = '401'
grep -qi '^WWW-Authenticate: Bearer' /tmp/private-mcp-headers
echo 'Public ProdVerity MCP verified; private GSA MCP remains OAuth-protected.'
SHA-256: de366235b5f8a2edba69c6e33bdf32241ed8f3aaaa5977c2141becc3e0ab4f3d