feat(cli): add manus-agent advisory subcommand for GitHub Security Advisory lookup - #128
Open
manus-use wants to merge 1 commit into
Open
feat(cli): add manus-agent advisory subcommand for GitHub Security Advisory lookup#128manus-use wants to merge 1 commit into
manus-use wants to merge 1 commit into
Conversation
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
Add
manus-agent advisory <CVE-ID>CLI subcommand that fetches GitHub Security Advisory (GHSA) details for a given CVE from the public GitHub Advisory Database.What this PR does
Refactors
get_github_advisory.py— extracts a reusablefetch_github_advisory()library function (no Strands dependency) that the CLI and the agent tool both call. The@tool-decorated wrapper now delegates to this function.Adds
advisoryCLI subcommand — users can look up GHSA data from the terminal without spinning up the full agent:manus-agent advisory CVE-2024-3094 manus-agent advisory CVE-2023-44487 --output json | jq .vulnerabilitiesRich text output displays:
33 new tests (
tests/test_cli_advisory.py) — 100% mocked, no real HTTP calls. Covers text output, JSON output, edge cases (no CVSS, no CWEs, withdrawn advisories, long descriptions, string references), and the library function directly.README updates — TOC entry + documentation section for the new subcommand.
Test results
All existing tests continue to pass. Zero failures.
Duplicate check
Checked all 46 open PRs (#53, #54, #58, #60, #64, #65, #67, #74-90, #96, #98, #100, #103-127) and 30 most recent merged PRs. No existing open or merged PR adds an
advisoryCLI subcommand. PR #92 (merged) adds tool-level tests forget_github_advisorybut does not touch the CLI.