Skip to content

docs: refocus the README and add a read-only token option - #14

Merged
blimmer merged 3 commits into
mainfrom
docs/readme-pass-readonly-token
May 26, 2026
Merged

docs: refocus the README and add a read-only token option#14
blimmer merged 3 commits into
mainfrom
docs/readme-pass-readonly-token

Conversation

@blimmer

@blimmer blimmer commented May 26, 2026

Copy link
Copy Markdown
Contributor

Summary

A documentation pass on the README, plus matching in-CLI guidance. The README is restructured around a one-line install, GitHub auth setup, what the tool reads from GitHub vs. what it reports, opening the report in a browser, and a tight telemetry/opt-out section. Since the tool only ever reads from the API, it now documents a read-only fine-grained token alongside gh auth login, with permissions verified against GitHub's fine-grained permissions reference. Also fixes a stale "current directory" claim in analyze.sh (the report goes to a temp dir).

Review focus

The token guidance is the one judgment call worth a hard look. Classic repo / gh auth login can't be read-only — GitHub has no read-only classic scope for private repos — so the least-privilege path requires a fine-grained token with Contents, Pull requests, Administration, Dependabot alerts (all read). I kept gh auth login as the easy path and added fine-grained as the opt-in least-privilege option rather than forcing it, because fine-grained tokens carry org-approval friction. Two things to sanity-check: (1) whether that framing is the right default, and (2) whether Administration: read is an acceptable ask — it's only needed for the branch-protection coverage metric, and the name sounds heavier than the others even though it's read-only.

Commits

  • 15545d7 — docs: rework the README and fix the analyze.sh output comment
  • ba9715f — docs: offer a read-only fine-grained token in the CLI walkthrough

blimmer added 2 commits May 26, 2026 14:02
Restructure the README around a one-line install, GitHub auth setup,
what the tool reads from GitHub vs. what it reports, opening the report
in a browser, and a tight telemetry/opt-out section. Document a
read-only fine-grained token alongside gh auth login.

Also fix the stale "current directory" claim in analyze.sh: the binary
writes its report to a temp dir and prints the path.
The token prompt only described the classic `repo` path, which is
read+write. Add the read-only fine-grained alternative (Contents,
Pull requests, Administration, Dependabot alerts) to both the gh and
PAT instructions, and note that the CLI only ever reads.
@blimmer
blimmer marked this pull request as ready for review May 26, 2026 20:03
@blimmer
blimmer merged commit 4f9959a into main May 26, 2026
7 checks passed
@blimmer
blimmer deleted the docs/readme-pass-readonly-token branch May 26, 2026 20:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant