Repository navigation
Ship CodeAtlas as a GitHub Action; lock down the dashboard API - #1
Merged
Merged
Conversation
- action.yml: composite action that installs only the engine and runs the deterministic analysis on the caller's repo; writes a hotspot/cycle/risk report to the job summary, saves the JSON model, optional max-hotspot gate - scripts/analyze.ts replaces self-analyze.ts: generic CLI (path, --out, --summary, --max-hotspot, --top); renderSummary/evaluateQualityGate in the engine with tests - churn: use --relative so analyzing a subfolder (monorepo package) no longer reports zero churn; raise execFile maxBuffer for busy histories - web API: drop client-supplied repoPath (arbitrary filesystem read on a public deployment); repo comes from CODEATLAS_REPO_PATH; paid runs are limited by a cooldown and share one in-flight run - CI dogfoods the action (uses: ./) and lints the web package Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
basartuncay
added a commit
that referenced
this pull request
Nov 30, 2026
Ship CodeAtlas as a GitHub Action; lock down the dashboard API
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What
action.yml):uses: basartuncay/CodeAtlas@v1runs the deterministic engine (no LLM, no API key) on the caller's repo. It writes top hotspots, cycles and high risks to the job summary, saves the JSON model, and can fail the build past amax-hotspotthreshold. It installs only the engine workspace (~1 s, no Next.js).scripts/analyze.tsreplacesself-analyze.ts:[path] --out --summary --max-hotspot --top. The rendering and gate logic live in the engine (renderSummary,evaluateQualityGate) and have tests.git log --relative. Also raisedmaxBuffer; the 1 MB default would crash on busy histories.POST /api/analyzeno longer acceptsrepoPathfrom the request body (that was an arbitrary filesystem read / git-in-any-directory primitive). The repo comes fromCODEATLAS_REPO_PATH. Paid Claude runs are limited by a cooldown (CODEATLAS_ANALYZE_COOLDOWN_SECONDS, default 600), and concurrent clicks share one in-flight run.uses: ./) and adds a web lint step.Verified
{"repoPath":"/etc"}ignores the path and analyzes the configured repo; an invalid API key returns a clean 500.After merge
Tag the action so
@v1resolves:git tag v1.0.0 && git tag v1 && git push origin v1.0.0 v1.🤖 Generated with Claude Code