issue-triage: outside contributors' issues are never triaged (default roles, then automatic min-integrity: approved)

Đang mở
#404 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
3/5
Thời gian dự kiến
Nửa ngày
Mức phù hợp với người mới
45/100
Loại issue
Lỗi
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions

Hướng nghiên cứu

Start with the event-driven issue-triage workflow template and its on: block, then the tools.github section where min-integrity would go. Also check the docs page and gallery entry the issue mentions, since they need the same settings described. Done means an outside author's issues event is not cancelled by the role check, the GitHub tools return the triggering issue, and the token stays read-only with safe-outputs unchanged. Check the daily variant's min-integrity: none for comparison. Security-sensitive, so confirm the maintainers accept the unapproved level first.

Do mô hình lập chỉ mục viết ra từ nội dung của issue.

Mô tả

The issue-triage template has no on.roles and no tools.github.min-integrity, so on a public repo it never triages an issue opened by someone outside the repo. Two separate gates are involved.

  1. The role check. With no on.roles, gh-aw uses [admin, maintainer, write], and issues triggers enforce it (triggers reference, "Filtering by Repository Access Roles"). A run for an outside author is cancelled.
  2. The integrity filter. Setting roles: all isn't enough on its own. With no min-integrity, gh-aw sets approved on public repos (integrity reference), and the GitHub MCP tools then drop content by CONTRIBUTOR, FIRST_TIMER and NONE authors. That includes the issue being triaged.
Reproduction

In shbernal/pptx-ts I run a copy of this template with roles: all added. An account with no association to the repo opened the same issue twice.

  • Before the fix, run 38776513670 (issue shbernal/pptx-ts#290). The log shows min-integrity not configured — automatically setting to 'approved' for public repository. The agent tried issue_read, list_issues and search_issues. Each one returned other issues but filtered out the triggering one, so the agent emitted missing_data and the run failed.
  • After the fix, run 38777502240 (issue shbernal/pptx-ts#293). The agent read the issue, found the fixed duplicate, labelled it and posted the report.

Other adopters hit the same two gates and added both settings by hand:

  • google/fonts added roles: all in 6ebbbf4, then min-integrity: none in google/fonts#11112 ("Allow unknown users to be triaged").
  • microsoft/typespec and PowerShell/Win32-OpenSSH also set both, each with a comment explaining why.
Suggested change
on:
  issues:
    types: [opened, reopened]
  reaction: eyes
  roles: all

permissions:
  contents: read
  issues: read
  pull-requests: read   # the default toolsets include pull_requests; the compiler asks for it once tools.github is declared

tools:
  github:
    min-integrity: unapproved   # the integrity guide recommends this level for community triage
    allowed-repos: public       # a custom guard policy replaces the automatic one, whose repo scope was public

The template's guardrails don't change: the token stays read-only and every write goes through safe-outputs with an allowed label list. unapproved still keeps blocked users out. I'd also add a line to the docs page and the gallery entry, since neither mentions either setting. The daily variant already sets min-integrity: none, so this is only about the event-driven one.

I can open a PR if that helps.

Ngôn ngữ chính
Python
Star
1.1k
Fork
163
Chỉ số merge pull request
Không có pull request nào được merge trong 30 ngày

Chuẩn bị môi trường

Dự án này không cung cấp dev container, Dockerfile hay hướng dẫn đóng góp, nên bạn cần tự thiết lập môi trường: hãy bắt đầu từ README và xem hướng dẫn đóng góp lần đầu của chúng tôi để biết các bước chung.

Bắt đầu từ đâu

  1. Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
  2. 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.
  3. Fork repository và làm thay đổi trên một nhánh.
  4. Mở pull request có tham chiếu số hiệu của issue.

Issue khác của githubnext/agentics

Tất cả issue của githubnext/agentics

Issue tương tự

Thêm issue về Python

Nhận issue mới trong hộp thư của bạn

Bản tóm tắt ngắn những issue GitHub phù hợp với người mới.