| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
Previously, omitting the `private` parameter on create_repository defaulted the new repository to public, an insecure default that could unintentionally expose code, configuration, and history. Omission now defaults to a private repository; public repositories are only created when `private` is explicitly set to false. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com>
|
This addresses the insecure default where create_repository produced a public repo when private was omitted. Decision summary:
Verified with script/lint (0 issues), go test -race ./... (passing), and script/generate-docs. Tool snapshot and README updated. |
Sorry, something went wrong.
There was a problem hiding this comment.
This PR updates the create_repository MCP tool to default to creating private repositories when the optional private parameter is omitted, reducing the risk of unintentionally creating public repos in agent-driven workflows.
Changes:
| File | Description |
|---|---|
| README.md | Updates create_repository.private docs to state it defaults to private when omitted. |
| pkg/github/repositories.go | Sets schema default for private and changes runtime parsing to default omitted private to true. |
| pkg/github/repositories_test.go | Updates minimal-args test to expect private repo by default and adds an explicit private: false public repo test. |
| pkg/github/toolsnaps/create_repository.snap | Updates snapshot to include default: true and the updated description for private. |
Sorry, something went wrong.
| Back | FazBrowse Home | New Git URL |
Summary
create_repository previously created a public repository whenever the private parameter was omitted. Because the parameter is optional, agent-driven or automated workflows could unintentionally create public repos, exposing source code, configuration, workflow files, and commit history.
This change makes the secure choice the default: omitting private now creates a private repository. A public repository is only created when private is explicitly set to false.
Changes
Behavior
Verification