- Notifications
You must be signed in to change notification settings - Fork3.1k
Migrate security_advisories toolset to modelcontextprotocol/go-sdk#1434
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to ourterms of service andprivacy statement. We’ll occasionally send you account related emails.
Already on GitHub?Sign in to your account
Merged
omgitsads merged 9 commits intoomgitsads/go-sdkfromcopilot/migrate-security-advisories-toolsetNov 19, 2025
Uh oh!
There was an error while loading.Please reload this page.
Merged
Changes fromall commits
Commits
Show all changes
9 commits Select commitHold shift + click to select a range
af338a3 Initial plan
Copilote7c88ea Migrate security_advisories toolset to modelcontextprotocol/go-sdk
Copilot695d806 Add toolsnaps tests and snapshots for security_advisories
Copilotcd77c13 Dont bubble up an error for getClient
omgitsads15905bf Merge remote-tracking branch 'origin/omgitsads/go-sdk' into copilot/m…
LuluBeatsonc981f91 re-add security_advisories toolset
LuluBeatsoneab4876 Merge branch 'omgitsads/go-sdk' of https://github.com/github/github-m…
omgitsadsc40591d Merge branch 'omgitsads/go-sdk' into copilot/migrate-security-advisor…
omgitsads3f3251d Revert this change from the base PR
omgitsadsFile filter
Filter by extension
Conversations
Failed to load comments.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Jump to
Jump to file
Failed to load files.
Loading
Uh oh!
There was an error while loading.Please reload this page.
Diff view
Diff view
There are no files selected for viewing
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,20 @@ | ||
| { | ||
| "annotations": { | ||
| "readOnlyHint": true, | ||
| "title": "Get a global security advisory" | ||
| }, | ||
| "description": "Get a global security advisory", | ||
| "inputSchema": { | ||
| "type": "object", | ||
| "required": [ | ||
| "ghsaId" | ||
| ], | ||
| "properties": { | ||
| "ghsaId": { | ||
| "type": "string", | ||
| "description": "GitHub Security Advisory ID (format: GHSA-xxxx-xxxx-xxxx)." | ||
| } | ||
| } | ||
| }, | ||
| "name": "get_global_security_advisory" | ||
| } |
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,87 @@ | ||
| { | ||
| "annotations": { | ||
| "readOnlyHint": true, | ||
| "title": "List global security advisories" | ||
| }, | ||
| "description": "List global security advisories from GitHub.", | ||
| "inputSchema": { | ||
| "type": "object", | ||
| "properties": { | ||
| "affects": { | ||
| "type": "string", | ||
| "description": "Filter advisories by affected package or version (e.g. \"package1,package2@1.0.0\")." | ||
| }, | ||
| "cveId": { | ||
| "type": "string", | ||
| "description": "Filter by CVE ID." | ||
| }, | ||
| "cwes": { | ||
| "type": "array", | ||
| "description": "Filter by Common Weakness Enumeration IDs (e.g. [\"79\", \"284\", \"22\"]).", | ||
| "items": { | ||
| "type": "string" | ||
| } | ||
| }, | ||
| "ecosystem": { | ||
| "type": "string", | ||
| "description": "Filter by package ecosystem.", | ||
| "enum": [ | ||
| "actions", | ||
| "composer", | ||
| "erlang", | ||
| "go", | ||
| "maven", | ||
| "npm", | ||
| "nuget", | ||
| "other", | ||
| "pip", | ||
| "pub", | ||
| "rubygems", | ||
| "rust" | ||
| ] | ||
| }, | ||
| "ghsaId": { | ||
| "type": "string", | ||
| "description": "Filter by GitHub Security Advisory ID (format: GHSA-xxxx-xxxx-xxxx)." | ||
| }, | ||
| "isWithdrawn": { | ||
| "type": "boolean", | ||
| "description": "Whether to only return withdrawn advisories." | ||
| }, | ||
| "modified": { | ||
| "type": "string", | ||
| "description": "Filter by publish or update date or date range (ISO 8601 date or range)." | ||
| }, | ||
| "published": { | ||
| "type": "string", | ||
| "description": "Filter by publish date or date range (ISO 8601 date or range)." | ||
| }, | ||
| "severity": { | ||
| "type": "string", | ||
| "description": "Filter by severity.", | ||
| "enum": [ | ||
| "unknown", | ||
| "low", | ||
| "medium", | ||
| "high", | ||
| "critical" | ||
| ] | ||
| }, | ||
| "type": { | ||
| "type": "string", | ||
| "description": "Advisory type.", | ||
| "default": "reviewed", | ||
| "enum": [ | ||
| "reviewed", | ||
| "malware", | ||
| "unreviewed" | ||
| ] | ||
| }, | ||
| "updated": { | ||
| "type": "string", | ||
| "description": "Filter by update date or date range (ISO 8601 date or range)." | ||
| } | ||
| } | ||
| }, | ||
| "name": "list_global_security_advisories" | ||
| } |
47 changes: 47 additions & 0 deletionspkg/github/__toolsnaps__/list_org_repository_security_advisories.snap
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,47 @@ | ||
| { | ||
| "annotations": { | ||
| "readOnlyHint": true, | ||
| "title": "List org repository security advisories" | ||
| }, | ||
| "description": "List repository security advisories for a GitHub organization.", | ||
| "inputSchema": { | ||
| "type": "object", | ||
| "required": [ | ||
| "org" | ||
| ], | ||
| "properties": { | ||
| "direction": { | ||
| "type": "string", | ||
| "description": "Sort direction.", | ||
| "enum": [ | ||
| "asc", | ||
| "desc" | ||
| ] | ||
| }, | ||
| "org": { | ||
| "type": "string", | ||
| "description": "The organization login." | ||
| }, | ||
| "sort": { | ||
| "type": "string", | ||
| "description": "Sort field.", | ||
| "enum": [ | ||
| "created", | ||
| "updated", | ||
| "published" | ||
| ] | ||
| }, | ||
| "state": { | ||
| "type": "string", | ||
| "description": "Filter by advisory state.", | ||
| "enum": [ | ||
| "triage", | ||
| "draft", | ||
| "published", | ||
| "closed" | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "name": "list_org_repository_security_advisories" | ||
| } |
52 changes: 52 additions & 0 deletionspkg/github/__toolsnaps__/list_repository_security_advisories.snap
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
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,52 @@ | ||
| { | ||
| "annotations": { | ||
| "readOnlyHint": true, | ||
| "title": "List repository security advisories" | ||
| }, | ||
| "description": "List repository security advisories for a GitHub repository.", | ||
| "inputSchema": { | ||
| "type": "object", | ||
| "required": [ | ||
| "owner", | ||
| "repo" | ||
| ], | ||
| "properties": { | ||
| "direction": { | ||
| "type": "string", | ||
| "description": "Sort direction.", | ||
| "enum": [ | ||
| "asc", | ||
| "desc" | ||
| ] | ||
| }, | ||
| "owner": { | ||
| "type": "string", | ||
| "description": "The owner of the repository." | ||
| }, | ||
| "repo": { | ||
| "type": "string", | ||
| "description": "The name of the repository." | ||
| }, | ||
| "sort": { | ||
| "type": "string", | ||
| "description": "Sort field.", | ||
| "enum": [ | ||
| "created", | ||
| "updated", | ||
| "published" | ||
| ] | ||
| }, | ||
| "state": { | ||
| "type": "string", | ||
| "description": "Filter by advisory state.", | ||
| "enum": [ | ||
| "triage", | ||
| "draft", | ||
| "published", | ||
| "closed" | ||
| ] | ||
| } | ||
| } | ||
| }, | ||
| "name": "list_repository_security_advisories" | ||
| } |
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
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
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
Oops, something went wrong.
Uh oh!
There was an error while loading.Please reload this page.
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.