Issue Triage fails on private repos: no contents read to fetch issue-labeler.yml

Đang mở Phù hợp với người mới
#119 0 bình luận 0 reaction 0 người được giao Xem trên GitHub

Maintainer thường phản hồi trong vòng 1 ngày

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
78/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
Lĩnh vực
ci-cd

Hướng nghiên cứu

Bắt đầu với .github/workflows/issue-triage.yml và kiểm tra quyền của job cũng như cách nó tải .github/issue-labeler.yml. Kiểm tra các quyền của workflow gọi được đề cập trong issue, bao gồm thiết lập issues: write của web-workspace. Công việc hoàn tất khi các repository riêng tư có thể tải cấu hình và gắn nhãn issue, đồng thời yêu cầu về quyền của workflow gọi được ghi lại.

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

Mô tả

bug
Issue description

The shared Issue Triage workflow fails on every private repo: the job can't read .github/issue-labeler.yml, so new issues are never labelled.

The job grants only issues: write and has no checkout step (issue-triage.yml#L9-L23). github/issue-labeler then fetches the config through the API, which needs contents: read on a private repo:

Configuration file (path: .github/issue-labeler.yml) does not exist locally, fetching via the API
Error loading configuration file: HttpError: Resource not accessible by integration

Seen on:

  • NanoForge-dev/web-workspace (private): the last 4 runs failed, e.g. run 42326546452 (2026-11-07);
  • NanoForge-dev/API (private): the last 3 runs failed, e.g. run 42311564887;
  • NanoForge-dev/CLI (public) succeeds with the same workflow, because public contents are readable without the permission.

Steps to reproduce:

  1. Open an issue in a private repo that calls nanoforge-dev/actions/.github/workflows/issue-triage.yml@v3 with only issues: write (e.g. web-workspace).
  2. The "Label issue" step fails with the error above.

Expected: the job reads the config and labels the issue. Fix direction: add contents: read to the job's permissions (or a checkout step), and document that callers must grant it too (web-workspace's caller grants only issues: write).

Found while reviewing web-workspace labels (branch chore/app-labels).

Code sample

No response

Versions
  • nanoforge-dev/actions v3 (main at a4f8ac2a2f0b9c1b24e6d5c3e69c86c7bf0588de), github/issue-labeler v3.4
  • GitHub-hosted ubuntu-latest
Issue priority

Medium (should be fixed soon)

I have tested this issue on a development release

No response

Ngôn ngữ chính
TypeScript
Star
0
Fork
0
Merge trung bình
15 giờ 51 phút
Pull request đã merge (30 ngày)
21

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

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 NanoForge-dev/actions

Tất cả issue của NanoForge-dev/actions

Issue tương tự

Thêm issue về TypeScript

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.