Ci Analyze

CI/CD Gate: Analyze a PR for security impact using FULL infrastructure simulation.

Flow:

  1. Authenticate via API key
  2. Fetch PR diff from GitHub, parse .tf changes
  3. Load last scan's infrastructure from DB
  4. For each TF resource change: deep-copy infra, mutate, rebuild graph, run all rules
  5. Diff findings (new vs original), calculate real score delta
  6. Detect new attack paths (BFS from internet)
  7. Return structured response with pass/warn/fail + findings + attack paths

This is NOT a static lint — it simulates the PR against your actual live infrastructure.

post/ci/analyze

Request

  • Base URL: https://emfirge.cloud (the document declares no server; this is the origin it was published from)
  • URL: https://emfirge.cloud/ci/analyze
  • Auth: none declared

Request body

repostring required
pr_numberinteger required
base_refstring
head_refstring
analysis_idstring nullable

Response

Successful Response

statusstring required
score_deltainteger
new_findingsobject[]
resolved_findingsobject[]
new_toxic_combosstring[]
summarystring
scan_age_hoursnumber nullable

Changes

No recorded changes to this operation across all 1 revision of this API.