Skip to content

Security: MarlonJD/ginsights

Security

docs/SECURITY.md

Security

Default mode

Default mode is local-only and does not send repository data anywhere.

Workspace discovery is also local-only. It scans filesystem Git boundaries without following symlinked directory trees and does not contact repository remotes.

GitHub connector rules

  • Connector must be opt-in.
  • Token must come from environment variables such as GINSIGHTS_GITHUB_TOKEN or GITHUB_TOKEN, never flags that are likely to be shell-history leaked.
  • Never write tokens to reports, logs, cache files, or panic output.
  • Clearly separate local Git-derived metrics from GitHub server-side analytics.
  • Connector failures must degrade gracefully without breaking local-only report generation.

Report safety

Report rendering uses Go html/template escaping. Do not switch to raw string concatenation for user/repo data.

There aren't any published security advisories