Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
23 changes: 23 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -720,10 +720,33 @@ The following sets of tools are available:
- **Required OAuth Scopes**: `security_events`
- **Accepted OAuth Scopes**: `repo`, `security_events`
- `owner`: The owner of the repository. (string, required)
- `page`: Page number for pagination (min 1) (number, optional)
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- `repo`: The name of the repository. (string, required)
- `severity`: Filter dependabot alerts by severity (string, optional)
- `state`: Filter dependabot alerts by state. Defaults to open (string, optional)

- **list_org_dependabot_alerts** - List org Dependabot alerts
- **Required OAuth Scopes**: `security_events`
- **Accepted OAuth Scopes**: `repo`, `security_events`
- `ecosystem`: Filter Dependabot alerts by package ecosystem (e.g. npm, pip, maven) (string, optional)
- `org`: The organization name. (string, required)
- `package`: Filter Dependabot alerts by package name (string, optional)
- `page`: Page number for pagination (min 1) (number, optional)
- `perPage`: Results per page for pagination (min 1, max 100) (number, optional)
- `severity`: Filter Dependabot alerts by severity (string, optional)
- `state`: Filter Dependabot alerts by state. Defaults to open (string, optional)

- **update_dependabot_alert** - Update Dependabot alert
- **Required OAuth Scopes**: `security_events`
- **Accepted OAuth Scopes**: `repo`, `security_events`
- `alertNumber`: The number of the alert. (number, required)
- `dismissedComment`: An optional comment associated with dismissing the alert. (string, optional)
- `dismissedReason`: Required when state is dismissed. The reason for dismissing the alert. (string, optional)
- `owner`: The owner of the repository. (string, required)
- `repo`: The name of the repository. (string, required)
- `state`: The state to set for the alert. (string, required)

</details>

<details>
Expand Down
11 changes: 11 additions & 0 deletions pkg/github/__toolsnaps__/list_dependabot_alerts.snap
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,17 @@
"description": "The owner of the repository.",
"type": "string"
},
"page": {
"description": "Page number for pagination (min 1)",
"minimum": 1,
"type": "number"
},
"perPage": {
"description": "Results per page for pagination (min 1, max 100)",
"maximum": 100,
"minimum": 1,
"type": "number"
},
"repo": {
"description": "The name of the repository.",
"type": "string"
Expand Down
60 changes: 60 additions & 0 deletions pkg/github/__toolsnaps__/list_org_dependabot_alerts.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"annotations": {
"readOnlyHint": true,
"title": "List org Dependabot alerts"
},
"description": "List Dependabot alerts for a GitHub organization.",
"inputSchema": {
"properties": {
"ecosystem": {
"description": "Filter Dependabot alerts by package ecosystem (e.g. npm, pip, maven)",
"type": "string"
},
"org": {
"description": "The organization name.",
"type": "string"
},
"package": {
"description": "Filter Dependabot alerts by package name",
"type": "string"
},
"page": {
"description": "Page number for pagination (min 1)",
"minimum": 1,
"type": "number"
},
"perPage": {
"description": "Results per page for pagination (min 1, max 100)",
"maximum": 100,
"minimum": 1,
"type": "number"
},
"severity": {
"description": "Filter Dependabot alerts by severity",
"enum": [
"low",
"medium",
"high",
"critical"
],
"type": "string"
},
"state": {
"default": "open",
"description": "Filter Dependabot alerts by state. Defaults to open",
"enum": [
"open",
"fixed",
"dismissed",
"auto_dismissed"
],
"type": "string"
}
},
"required": [
"org"
],
"type": "object"
},
"name": "list_org_dependabot_alerts"
}
53 changes: 53 additions & 0 deletions pkg/github/__toolsnaps__/update_dependabot_alert.snap
Original file line number Diff line number Diff line change
@@ -0,0 +1,53 @@
{
"annotations": {
"title": "Update Dependabot alert"
},
"description": "Update the state of a Dependabot alert in a GitHub repository.",
"inputSchema": {
"properties": {
"alertNumber": {
"description": "The number of the alert.",
"type": "number"
},
"dismissedComment": {
"description": "An optional comment associated with dismissing the alert.",
"type": "string"
},
"dismissedReason": {
"description": "Required when state is dismissed. The reason for dismissing the alert.",
"enum": [
"fix_started",
"inaccurate",
"no_bandwidth",
"not_used",
"tolerable_risk"
],
"type": "string"
},
"owner": {
"description": "The owner of the repository.",
"type": "string"
},
"repo": {
"description": "The name of the repository.",
"type": "string"
},
"state": {
"description": "The state to set for the alert.",
"enum": [
"open",
"dismissed"
],
"type": "string"
}
},
"required": [
"owner",
"repo",
"alertNumber",
"state"
],
"type": "object"
},
"name": "update_dependabot_alert"
}
Loading