[workshop-sync] workshop/side-quest-17-07-repo-poisoning.md: wrong `network.allowed-domains` key and inverted `protected-files.exclude` semantic

Đã đóng Phù hợp với người mới
#5,194 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
86/100
Loại issue
Tài liệu
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github-actions, markdown
Lĩnh vực
documentation

Hướng nghiên cứu

Mở workshop/side-quest-17-07-repo-poisoning.md và so sánh các cài đặt mạng trong đó với tài liệu tham chiếu mạng gh-aw, đồng thời so sánh hướng dẫn về các tệp được bảo vệ với tài liệu tham chiếu safe-outputs-pull-requests. Cập nhật các ví dụ, bảng và checkpoint để sử dụng các khóa và ngữ nghĩa đã được tài liệu hóa; hoàn thành khi workshop không còn trình bày các cài đặt cũ hoặc bị đảo ngược.

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

Mô tả

documentation

Workshop file reviewed

workshop/side-quest-17-07-repo-poisoning.md (gh-aw v1.0.1)

Problems

  1. The file uses network.allowed-domains (lines 13, 111, 166, 186, 198), e.g.:

network:\n allowed-domains:\n - "api.github.com"

The gh-aw network reference documents the key as network.allowed (for example allowed: [defaults, github]). allowed-domains is a safe-outputs key, not a network key. The link anchor #configuration should also be checked.

  1. Lines 104-105 say protected-files.exclude "flags listed files for mandatory review", and the example excludes .github/workflows/** and README.md to protect them. Per the safe-outputs-pull-requests reference, exclude removes entries from the default protected set. The example therefore makes workflow files unprotected rather than protected.

  2. policy: request_review is now the legacy spelling. The documented default is request-review, and blocked is the hard-block option. Use blocked to stop changes to .github/workflows/**.

Suggested fix

  • Replace network.allowed-domains with network.allowed and update the example and checkpoint.
  • Rewrite the protected-files table and example: allowed-files limits paths, protected-files.policy (request-review / blocked / fallback-to-issue) sets the response, and exclude opts files out of protection.

Generated by 🔍 Workshop Sync Check · copilot · auto · ~26 AIC · ⌖ ~1 AIC · ⊞ 4.7K · ◷

  • expires on Nov 1, 2026, 9:03 AM UTC
Ngôn ngữ chính
JavaScript
Star
56
Fork
40
Merge trung bình
2 ngày 14 giờ
Pull request đã merge (30 ngày)
13

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

Mở trong Codespaces

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

  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/gh-aw-workshop

Tất cả issue của githubnext/gh-aw-workshop

Issue tương tự

Thêm issue về JavaScript

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.