Merged
Conversation
Adds `armis-cli install claude` which downloads the Armis AppSec MCP plugin from https://github.com/silk-security/armis-appsec-mcp and installs it into the user's Claude Code environment. The command: - Downloads the latest tarball from GitHub - Extracts to ~/.claude/plugins/cache/ - Creates a Python venv and installs dependencies - Registers the plugin marketplace and enables it - Preserves existing .env credentials on reinstall Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Use filepath.Clean and filepath.IsAbs instead of substring check, plus the existing destDir prefix validation as defense-in-depth. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
…ve to ArmisSecurity org Fetch latest release from GitHub Releases API instead of pulling the main branch tarball. Track and display the installed plugin version. Add --version flag to check the installed version. Move repo reference from silk-security to ArmisSecurity. Add CWE-770 entry count limit to tar extraction. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Resolve Python path symlinks and validate absolute path to mitigate untrusted search path. Handle error returns from flag parsing and os.UserHomeDir. Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
Test Coverage Reporttotal: (statements) 79.1% Coverage by function |
| } | ||
|
|
||
| venvDir := filepath.Join(pluginDir, ".venv") | ||
| venvCmd := exec.Command(python, "-m", "venv", venvDir) //nolint:gosec // python validated by findPython allowlist |
| if err != nil || !filepath.IsAbs(resolved) { | ||
| continue | ||
| } | ||
| out, err := exec.Command(resolved, "-c", "import sys; print(sys.version_info >= (3, 11))").Output() //nolint:gosec // resolved path validated above |
7 tasks
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
Details
New files:
internal/cmd/install.go— parentinstallcommandinternal/cmd/install_claude.gointernal/install/claude.go— download, extract, register, enable logicinternal/install/claude_test.go— 10 tests covering registration, settings preservation, error casesTest plan
go build ./...compiles cleanlygo vet ./...passesgo test -v ./internal/install/...— 10/10 tests passarmis-cli install claudeand verify plugin appears in Claude Code🤖 Generated with Claude Code