mirror of
https://github.com/tiennm99/goclaw.git
synced 2026-07-25 16:21:23 +00:00
950 B
950 B
Secure CLI GitHub Credential Runtime Fix
Summary
Fixed GitHub-related SecureCLI auth diagnostics for git and gh runtime
commands linked to digitopvn/goclaw#138 and digitopvn/goclaw#151.
Root Cause
- Adapter-managed
gitremote commands could reach raw Git when no typed PAT or SSH credential was selected. - Required env validation only covered
rapidapi, so credentialedghcommands withoutGH_TOKENcould reach raw GitHub CLI auth guidance.
Changes
- Added fail-closed git credential readiness validation before adapter prepare.
- Generalized required env checks to preset non-optional env vars.
- Added regression tests for missing git typed credentials and missing
GH_TOKEN. - Updated git adapter docs and project changelog.
Validation
/usr/local/go/bin/go test ./internal/tools/usr/local/go/bin/go build ./.../usr/local/go/bin/go build -tags sqliteonly ./...
Unresolved Questions
None.