Repository navigation
Description
Background
GitHub's "Code scanning tool status" page shows a per-language "X/Y files scanned, Z%" breakdown for CodeQL, but GitGalaxy's own SARIF upload only shows "No summary of scanned files reported." Investigated whether this is fixable via SARIF: it isn't. Confirmed directly against GitHub's own docs:
- The tool-status page's per-language scanned-files percentage is explicitly scoped to "integrated tools such as CodeQL" (https://docs.github.com/en/code-security/code-scanning/managing-your-code-scanning-configuration/about-the-tool-status-page).
- The full list of SARIF properties GitHub code scanning actually reads (https://docs.github.com/en/code-security/code-scanning/integrating-with-code-scanning/sarif-support-for-code-scanning) has no field for artifact/file-coverage inventory or per-language scan metadata -- there is nothing a third-party SARIF upload can add to populate that specific view.
Proposal
Build the equivalent (and better) report in a venue we actually control: a GitHub Actions Job Summary ($GITHUB_STEP_SUMMARY), written as markdown from the gitgalaxy.yml workflow's existing "Run GalaxyScope" step. This renders prominently at the top of the Actions run page, has zero schema restrictions (pure markdown), and can show real signal CodeQL's simple percentage can't -- since GitGalaxy already computes rich per-file/per-language structural data for the LLM brief, none of this requires new analysis, just presenting data already generated.
Suggested content (open to iterating on granularity)
- A per-language table: language, files scanned, total LOC, % of repo composition (mirrors the LLM brief's own "Repository Ecosystem Baseline"/composition data).
- A "Top 5 riskiest files" callout, pulled from the same cumulative-risk data already in the LLM brief's "Cumulative Risk Hitlist" section.
- Possibly: AI threat status (the brief's own "SECURE_NO_THREATS_DETECTED" line), SBOM/dependency count, scan duration.
Open questions for implementation
- Exact granularity: is the language table + top-5 callout the right scope for v1, or should this go deeper (e.g. per-directory-group breakdown, matching the brief's "Directory Groups" section)?
- Where to source the data from: reuse the LLM brief's own generation path (
llm_recorder.py) vs. a lighter-weight summary computed directly in the workflow step to avoid duplicating a full scan pass.
Part of ongoing work to make GitGalaxy's CI-visible footprint (already tracked via telemetry, see the squid-telemetry repo) as informative as possible for anyone landing on an Actions run or the repo's Security tab.
Activity