Skip to content

Add GitHub Actions Job Summary report (per-language scan table + top riskiest files) #935

Closed

Description

@squid-protocol

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:

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

  1. added
    enhancement
    github-actions
    ci-cd
    on Aug 1, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    ci-cdenhancementgithub-actions

    Type

    No type

    Projects

    No projects

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions