@codacy/verity-cli 0.28.1-experimental.9155758 → 0.28.1-experimental.af3c52d
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +11 -1
- package/bin/verity.js +6371 -3316
- package/data/skills/verity-analyze/SKILL.md +2 -1
- package/data/skills/verity-setup/SKILL.md +18 -13
- package/package.json +1 -1
|
@@ -20,7 +20,8 @@ You are running an on-demand Verity analysis. This is like a "second opinion"
|
|
|
20
20
|
- **Fails / not authenticated**: don't stop. Tell the user Verity is in
|
|
21
21
|
**local-only mode**, so the review will run static analysis and show findings
|
|
22
22
|
but won't perform the deep (LLM) review or upload anything. To unlock the deep
|
|
23
|
-
review they can authenticate with `verity
|
|
23
|
+
review they can authenticate with `verity login` (one login covers every
|
|
24
|
+
repository they can write to).
|
|
24
25
|
Continue — `verity review` degrades to a local static-only report on its own.
|
|
25
26
|
|
|
26
27
|
---
|
|
@@ -341,21 +341,26 @@ verity auth verify
|
|
|
341
341
|
deep review, history, and shareable reports by running:
|
|
342
342
|
|
|
343
343
|
```bash
|
|
344
|
-
verity
|
|
345
|
-
# or
|
|
346
|
-
verity auth register --project "PROJECT_NAME" --remote "GIT_REMOTE_URL"
|
|
344
|
+
verity login # one GitHub login covers every repo you can write to
|
|
345
|
+
# or: verity init # re-runs init; offers the same auth prompt
|
|
347
346
|
```
|
|
348
347
|
|
|
349
|
-
|
|
350
|
-
|
|
351
|
-
|
|
352
|
-
|
|
353
|
-
|
|
354
|
-
|
|
355
|
-
|
|
356
|
-
|
|
357
|
-
|
|
358
|
-
|
|
348
|
+
Login is **provider-gated** (GitHub today): the CLI runs a GitHub App **device
|
|
349
|
+
flow** ("open https://github.com/login/device and enter code WXYZ-1234"),
|
|
350
|
+
proving the user has **write access** before the service issues a token. The
|
|
351
|
+
GitHub App requests only read-only permissions (Metadata + Email addresses);
|
|
352
|
+
the provider token is used once server-side to sweep the repositories the user
|
|
353
|
+
can write to, and is never persisted.
|
|
354
|
+
|
|
355
|
+
**One login covers every repository** the user can write to, not just this one.
|
|
356
|
+
Re-running `verity login` is also how access to newly-granted repos is picked
|
|
357
|
+
up, and how an expired verification is restored. If login reports this
|
|
358
|
+
repository is **not covered**, the Verity GitHub App has not been granted
|
|
359
|
+
access to it — grant it, then re-run `verity login`.
|
|
360
|
+
|
|
361
|
+
When authenticated, the user's `token` and `service_url` are stored in the single
|
|
362
|
+
global credentials file `~/.verity/credentials` — nothing secret is written into
|
|
363
|
+
the repo. All subsequent `verity` upload commands work.
|
|
359
364
|
|
|
360
365
|
---
|
|
361
366
|
|