[workshop-sync] side-quest-13-01-pr-labeler-pattern.md: invalid add-labels schema and disallowed write permission
メンテナーはふだん 1 日以内に返信
まだ誰も着手していません。
評価
- 難易度
- 1/5
- 見積もり時間
- 1時間未満
- 初心者へのやさしさ
- 92/100
- issue の種類
- バグ
- 明瞭さ
- 明確に書かれている
- 活発さ
- 活発
- 技術スタック
- github-actions, markdown, yaml
調査の方向性
workshop/side-quest-13-01-pr-labeler-pattern.md を開き、.github/workflows/pr-labeler.md の frontmatter の例を確認します。説明に従って無効な add-labels フィールドを置き換え、許可されていない書き込み権限を削除してから、strict mode で gh aw compile --validate を実行します。例がエラーや警告なしでコンパイルされれば完了です。
索引モデルが issue の本文から書いたものです。
説明
Workshop file reviewed
workshop/side-quest-13-01-pr-labeler-pattern.md
Problem
The example workflow frontmatter in this file fails to compile with the current gh-aw CLI (v0.89.21) for two reasons:
-
Invalid
add-labelsfieldlimit:safe-outputs: add-labels: limit: 5Compiling this with
gh aw compile --validateproduces:error: Unknown property: limit. Valid fields are: allowed, allowed-repos, blocked, create-if-missing, github-app, github-token, issue-intent, issues, max, pull-requests, ... -
Disallowed write permission alongside
safe-outputs:permissions: pull-requests: write contents: readCompiling in strict mode (the workshop's default/recommended mode) produces:
error: strict mode: write permission 'pull-requests: write' is not allowed for security reasons. Use 'safe-outputs.create-issue', 'safe-outputs.create-pull-request', 'safe-outputs.add-comment', or 'safe-outputs.update-issue' to perform write operations safely.
Both errors were reproduced directly by compiling the exact snippet from the file with gh aw compile --validate.
Current correct syntax
- The
add-labelssafe output uses the fieldmax, notlimit, to cap the number of labels applied. permissions:should not declarepull-requests: writewhensafe-outputs.add-labelsis used —safe-outputsperforms the write on the agent's behalf and only read-level permissions are needed in the job. See https://github.github.com/gh-aw/reference/safe-outputs/
A corrected frontmatter block:
---
name: PR Labeler
on:
pull_request:
types: [opened, synchronize]
permissions:
contents: read
safe-outputs:
add-labels:
max: 5
---
This was verified to compile successfully with gh aw compile --validate (no errors or warnings).
Suggested fix
In the .github/workflows/pr-labeler.md example inside the workshop file:
- Replace
limit: 5withmax: 5undersafe-outputs.add-labels. - Remove
pull-requests: writefrom thepermissions:block, keeping onlycontents: read.
Generated by 🔍 Workshop Sync Check · copilot · auto · 204.5 AIC · ⌖ 6.8 AIC · ⊞ 9.2K · ◷
- expires on Oct 2, 2026, 8:58 AM UTC
- 主要言語
- JavaScript
- スター
- 53
- フォーク
- 35
- 平均マージ
- 1日 6時間
- マージ済み PR(30日)
- 15
環境構築
このプロジェクトの開発コンテナを、あなたの GitHub アカウントでブラウザ上に起動します。
- Dockerfile・Docker Compose ファイルなし
- プルリクエストのテンプレートなし
- コントリビューションガイドなし
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
githubnext/gh-aw-workshop のほかの issue
-
feedback simulation workshop
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
githubnext/gh-aw-workshop#4755 ·
メンテナーはふだん 1 日以内に返信
-
curriculum documentation quality
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
githubnext/gh-aw-workshop#4746 ·
メンテナーはふだん 1 日以内に返信
-
curriculum documentation quality
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
githubnext/gh-aw-workshop#4744 ·
メンテナーはふだん 1 日以内に返信
-
curriculum documentation quality
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
githubnext/gh-aw-workshop#4745 ·
メンテナーはふだん 1 日以内に返信
-
curriculum documentation quality
難易度 2/5 1〜3時間 初心者へのやさしさ 75/100
githubnext/gh-aw-workshop#4743 ·
メンテナーはふだん 1 日以内に返信
githubnext/gh-aw-workshop の issue をすべて見る
似ている issue
-
idnits3
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
ietf-tools/idnits#363 ·
メンテナーはふだん 1 日以内に返信
-
prototype(verifier_token): map disallowed warning to contraindicated before composite precedence check対応中かも @drk-ram が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 88/100
agentrust-io/trace-spec#582 ·
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 72/100
メンテナーはふだん 1 日以内に返信
-
難易度 2/5 半日 初心者へのやさしさ 72/100
TheOdinProject/curriculum#31479 ·
メンテナーはふだん 1 日以内に返信
-
chore
難易度 2/5 1〜3時間 初心者へのやさしさ 76/100
SignalK/n2k-signalk#368 ·
メンテナーはふだん 1 日以内に返信