GET /repos/{owner}/{repo}/actions/runs: bot committer emails fail `format: "email"` validation
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 2/5
- Thời gian dự kiến
- 1-3 giờ
- Mức phù hợp với người mới
- 68/100
- Loại issue
- Lỗi
- Độ rõ ràng
- Khá rõ ràng
- Mức độ hoạt động
- Ít trao đổi
- Công nghệ
- openapi
- Lĩnh vực
- api
Hướng nghiên cứu
Tìm trong phần mô tả OpenAPI GET /repos/{owner}/{repo}/actions/runs và các trường email của author/committer của commit thuộc workflow run. So sánh các ràng buộc của schema với các ví dụ email của bot trong issue, sau đó xác thực rằng thay đổi schema đã chọn chấp nhận các giá trị đó mà không làm hỏng phần mô tả endpoint.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
Description
The workflow runs endpoint (GET /repos/{owner}/{repo}/actions/runs) returns commit objects where the committer/author email field is declared with format: "email", but GitHub Actions bot commits use email addresses like:
github-actions[bot]@users.noreply.github.com
The square brackets in github-actions[bot] make this address non-compliant with RFC 5321 (which prohibits [ and ] in the local part of an email address). JSON Schema validators that strictly enforce format: "email" will reject these values.
Error observed
When calling GET /repos/{owner}/{repo}/actions/runs on a repository that has GitHub Actions bot commits, MCP servers and other tools that validate against this schema fail with:
MCP error -32602: Structured content does not match the tool's output schema:
[commit].committer.email must match format "email"
Examples of non-RFC-compliant bot emails returned by the API
github-actions[bot]@users.noreply.github.com49699333+dependabot[bot]@users.noreply.github.com
The [bot] suffix appended to the username contains square brackets, which are not permitted in the local part of an RFC 5321 email address.
Expected behavior
The schema should either:
- Relax the
format: "email"constraint on committer/author email fields in workflow run commit objects (e.g. useformat: "email"only as a hint, or remove it for these fields), or - Use a more permissive format that accommodates GitHub's internal bot email convention
Steps to reproduce
- Call
GET /repos/{owner}/{repo}/actions/runson any repo that uses GitHub Actions or Dependabot - Inspect the
head_commit.committer.emailorhead_commit.author.emailfield - Validating against the current schema's
format: "email"constraint will fail for bot-authored commits
Notes
- This affects all endpoints returning workflow run objects with commit data
- The same issue may affect other endpoints that return commit author/committer objects where bot accounts are involved
- Ngôn ngữ chính
- Không có dữ liệu ngôn ngữ
- Star
- 1.6k
- Fork
- 342
- Merge trung bình
- 3 giờ 33 phút
- Pull request đã merge (30 ngày)
- 51
Hướng dẫn đóng góp
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của github/rest-api-description
-
feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
github/rest-api-description#7201 ·
-
feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
github/rest-api-description#7163 ·
-
Runner deprecations: registration_deprecates_at is declared on the response but never returned Đang mởfeature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
github/rest-api-description#7162 ·
-
feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
github/rest-api-description#7135 ·
-
feature
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 74/100
github/rest-api-description#7111 · 1 bình luận ·
Tất cả issue của github/rest-api-description
Issue tương tự
-
area/sessions comp/cron comp/gateway P2 sweeper:risk-message-delivery sweeper:risk-session-state type/bug
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
NousResearch/hermes-agent#118863 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
use-agent-os/agent-os#3312 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 85/100
-
needs-acceptance wg/data-plane-networking
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
vllm-project/semantic-router#4024 · 1 bình luận ·