[workshop-sync] side-quest-13-01-pr-labeler-pattern.md: invalid add-labels schema and disallowed write permission
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ó
- 1/5
- Thời gian dự kiến
- Dưới một giờ
- Mức phù hợp với người mới
- 92/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, markdown, yaml
- Lĩnh vực
- documentation
Hướng nghiên cứu
Mở workshop/side-quest-13-01-pr-labeler-pattern.md và kiểm tra frontmatter mẫu trong .github/workflows/pr-labeler.md. Thay thế trường add-labels không hợp lệ và xóa quyền ghi không được phép như mô tả, sau đó chạy gh aw compile --validate ở strict mode. Hoàn tất khi ví dụ được biên dịch mà không có lỗi hoặc cảnh báo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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
- Ngôn ngữ chính
- JavaScript
- Star
- 55
- Fork
- 36
- Merge trung bình
- 2 ngày 6 giờ
- Pull request đã merge (30 ngày)
- 18
Chuẩn bị môi trường
Khởi chạy dev container của dự án ngay trên trình duyệt, bằng tài khoản GitHub của bạn.
- Không có Dockerfile hay tệp Docker Compose
- Không có mẫu pull request
- Không có 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 githubnext/gh-aw-workshop
-
curriculum documentation quality
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 83/100
githubnext/gh-aw-workshop#4824 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[workshop-sync] workshop/side-quest-06-02-cca-codespace.md: misleading authentication doc linkĐang mởdocumentation
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 84/100
githubnext/gh-aw-workshop#4803 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
curriculum documentation quality
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
githubnext/gh-aw-workshop#4802 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
curriculum documentation quality
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 78/100
githubnext/gh-aw-workshop#4800 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
documentation guidelines
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 90/100
githubnext/gh-aw-workshop#4670 ·
Maintainer thường phản hồi trong vòng 1 ngày
Tất cả issue của githubnext/gh-aw-workshop
Issue tương tự
-
[External Plugin]: CarboneĐang mởexternal-plugin ready-for-review third party
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 63/100
github/awesome-copilot#5259 · 1 bình luận ·
Maintainer thường phản hồi trong vòng 1 ngày
-
[Bug]: fileUploadMatrix.test.ts URL case does a real DNS lookup and fails offlineCó thể đã có người làm @r2jaff đã nhận hôm nay. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 72/100
ComposioHQ/composio#5054 ·
Maintainer thường phản hồi trong vòng 1 ngày
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 82/100
addyosmani/agent-skills#717 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
[Bug] Certificate expiry sorting can reverse UTC order across a viewer daylight-saving gapCó thể đã có người làm Có pull request liên kết đang mở hoặc đã được merge. Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 76/100
apache/rocketmq-dashboard#7318 ·
Maintainer thường phản hồi trong vòng 3 ngày
-
W3cĐang mở
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 88/100
web-platform-tests/wpt#64017 ·
Maintainer thường phản hồi trong vòng 1 ngày