Skip to content

Review local Git changes with the CLI's secret preflight - #112

Open
Poushali-02 wants to merge 1 commit into
prooflinedev:mainfrom
Poushali-02:feat/patch-review-from-git
Open

Poushali-02 wants to merge 1 commit into
prooflinedev:mainfrom
Poushali-02:feat/patch-review-from-git

Conversation

@Poushali-02

Copy link
Copy Markdown

Add request_patch_review_from_git to both clients. It builds the patch the way proofline review does: one Git snapshot under fixed options, read through a copied index so the repository's own index is never modified, and refused locally when it holds binary, symlink, submodule, conflicted, non-UTF-8 or oversized changes.

Before any request it applies the CLI's secret preflight to every uploaded line: .env paths, private-key markers and the listed credential shapes are refused with the path, line and kind, never the credential itself. Exact paths in allow_paths are skipped.

read_local_changes, check_secrets and LocalPatch are exported for callers who build the request themselves.

Add request_patch_review_from_git to both clients. It builds the patch the
way `proofline review` does: one Git snapshot under fixed options, read
through a copied index so the repository's own index is never modified, and
refused locally when it holds binary, symlink, submodule, conflicted,
non-UTF-8 or oversized changes.

Before any request it applies the CLI's secret preflight to every uploaded
line: .env paths, private-key markers and the listed credential shapes are
refused with the path, line and kind, never the credential itself. Exact
paths in allow_paths are skipped.

read_local_changes, check_secrets and LocalPatch are exported for callers
who build the request themselves.

This branch has not been deployed

No deployments
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