Skip to content

Latest commit

 

History

History
37 lines (26 loc) · 1.33 KB

README.md

File metadata and controls

37 lines (26 loc) · 1.33 KB

CloudSlash GitHub plugin

Read-only GitHub inventory for CloudSlash. It discovers repositories, branches, Actions workflows, Actions secret names (never values), deploy keys, webhooks, collaborators, and default-branch protection, then emits normalized CRNs and relationships to the core.

Permissions

Use a dedicated read-only token. A classic token needs:

  • repo (repository metadata)
  • read:org
  • read:user

A fine-grained token needs repository metadata, actions, and administration read access for the repositories you select. The plugin never writes.

Some endpoints (Actions secrets, branch protection) require admin visibility. If the token cannot read one, the scan records a warning and continues.

Connect

  1. Create the read-only token.
  2. Add a GitHub connection in CloudSlash with the token, or run cs plugin host github --run and use the hosted connection form.
  3. For GitHub Enterprise, set the API base URL (for example https://github.example.com/api/v3).

The token is stored as a write-only secret by the connection layer.

Hosted

cs plugin host github --run builds cmd/hosted, which serves the v3 source over native gRPC and gRPC-Web. The CloudSlash CLI isolates the quick tunnel and forces HTTP/2 so the transport works without a Cloudflare account. See docs-site/docs/explanation/grpc-web-hosted-plugins.md.