security
暂无简介
- License 许可
- MIT
- 最近更新
- 2026-11-14
- Stars
- ★ 0
- Forks
- 0
02 资源文件 1
- 脚本__init__.py3.6 KB
03 SKILL.md 正文
GitHub Repository Settings
PATCH /chat/github/repos/{owner}/{repo}/settings
Toggle repository security-and-analysis features on repos under the configured GitHub App installation.
This is a confirmation-gated mutation. Before calling, confirm the exact repo name
(owner/repo) and the specific change with the user in-chat. Never toggle settings without explicit
user approval in the conversation — the endpoint modifies live repository configuration.
Request
- Method:
PATCH - Auth:
X-API-Keyheader (server-sidecentral_deploy.deploy_api_key) - Content-Type:
application/json
Path parameters
| Parameter | Description |
|---|---|
owner |
GitHub organisation or user name |
repo |
Repository name (not owner/repo) |
Body (JSON)
All fields are optional — omitted fields are left unchanged. Each accepts "enabled" or
"disabled".
| Field | Description |
|---|---|
dependency_graph |
Enable/disable the dependency graph |
advanced_security |
Enable/disable GitHub Advanced Security |
secret_scanning |
Enable/disable secret scanning |
secret_scanning_push_protection |
Enable/disable push protection for secret scanning |
At least one field must be specified.
Example
{
"dependency_graph": "enabled"
}
Response
| Status | Meaning |
|---|---|
| 200 | Settings applied successfully — body includes the repo and result message |
| 400 | Invalid body (missing required field, invalid value) or missing path params |
| 403 | Invalid or missing X-API-Key header |
| 404 | Repository not in the GitHub App installation scope |
| 503 | github_security not configured (disabled or missing central_deploy.deploy_api_key) |
GET /chat/github/repos/{owner}/{repo}/actions/jobs/{job_id}/logs
Fetch the plain-text log for a GitHub Actions job. The GitHub API returns a 302 redirect to a signed URL; this endpoint follows it server-side and returns the log content directly as a 200 response so the agent can inspect deploy pipeline output (e.g., lftp commands) to diagnose deployment failures.
Request
- Method:
GET - Auth:
X-API-Keyheader (server-sidecentral_deploy.deploy_api_key)
Path parameters
| Parameter | Description |
|---|---|
owner |
GitHub organisation or user name |
repo |
Repository name (not owner/repo) |
job_id |
GitHub Actions job ID (integer) |
Response
| Status | Meaning |
|---|---|
| 200 | Plain-text job log content |
| 400 | Missing path params or invalid job_id |
| 403 | Invalid or missing X-API-Key header |
| 404 | Repository not in the GitHub App installation scope, or job not found |
| 502 | Upstream GitHub API error |
| 503 | github_security not configured (disabled or missing central_deploy.deploy_api_key) |