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

オープン 初心者向け
#119 コメント 0 件 リアクション 0 件 担当者 0 名 GitHub で見る

メンテナーはふだん 1 日以内に返信

まだ誰も着手していません。

評価

難易度
2/5
見積もり時間
1〜3時間
初心者へのやさしさ
78/100
issue の種類
バグ
明瞭さ
明確に書かれている
活発さ
活発
技術スタック
github-actions
領域
ci-cd

調査の方向性

.github/workflows/issue-triage.ymlから始めて、jobの権限と.github/issue-labeler.ymlの読み込み方法を調べてください。issueで言及されている呼び出し元workflowの権限を確認し、web-workspaceのissues: write設定も確認してください。private repositoryで設定を読み込んでissueにラベルを付けられるようになり、呼び出し元workflowに必要な権限が文書化されたら完了です。

索引モデルが issue の本文から書いたものです。

説明

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

主要言語
TypeScript
スター
0
フォーク
0
平均マージ
15時間 51分
マージ済み PR(30日)
21

環境構築

はじめの一歩

  1. issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
  2. 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
  3. リポジトリをフォークし、ブランチを切って変更します。
  4. issue 番号を参照したプルリクエストを送ります。

NanoForge-dev/actions のほかの issue

NanoForge-dev/actions の issue をすべて見る

似ている issue

TypeScript の issue をもっと見る

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。