Skip to content

Commit eb3656c

Browse files
authored
Remove get_ghsa_with_id_from_db function
Removed the function get_ghsa_with_id_from_db that retrieves a GHSA advisory record by ID.
1 parent 6e42a64 commit eb3656c

1 file changed

Lines changed: 0 additions & 13 deletions

File tree

  • src/seclab_taskflows/mcp_servers

src/seclab_taskflows/mcp_servers/ghsa.py

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -277,19 +277,6 @@ def get_ghsas_for_repo_from_db(
277277
"""Get all GHSA advisory records for a repository."""
278278
return json.dumps(backend.get_ghsas(process_repo(owner, repo)))
279279

280-
@mcp.tool()
281-
def get_ghsa_with_id_from_db(
282-
owner: str = Field(description="The owner of the GitHub repository"),
283-
repo: str = Field(description="The name of the GitHub repository"),
284-
ghsa_id: str = Field(description="The GHSA ID of the advisory"),
285-
):
286-
"""Get a GHSA advisory record with a specific GHSA ID from the database."""
287-
repo_name = process_repo(owner, repo)
288-
result = backend.get_ghsa(repo_name, ghsa_id)
289-
if not result:
290-
return f"Error: No GHSA entry exists in repo: {repo_name} and ghsa_id {ghsa_id}"
291-
return json.dumps(result)
292-
293280
@mcp.tool()
294281
def store_new_ghsa_summary(
295282
owner: str = Field(description="The owner of the GitHub repository"),

0 commit comments

Comments
 (0)