Hacktoberfest 2026: những issue maintainer đã đánh dấu cho tháng Mười, đang mở và phù hợp người mới. Xem issue Hacktoberfest

GitHub security workshop: Add Copilot-assisted remediation and verification

Đang mở
#273 1 bình luận 0 reaction 0 người được giao Xem trên GitHub

Chưa có ai nhận issue này.

Đánh giá

Độ khó
4/5
Thời gian dự kiến
3-5 ngày
Mức phù hợp với người mới
68/100
Loại issue
Tài liệu
Độ rõ ràng
Khá rõ ràng
Mức độ hoạt động
Sôi nổi
Công nghệ
github, github-actions, python

Hướng nghiên cứu

Bắt đầu từ alert do CodeQL lab hiện có giới thiệu, rồi lần theo đường dẫn dễ bị tổn thương và các bài kiểm thử hành vi tập trung của nó. Thêm hướng dẫn khắc phục có Copilot hỗ trợ và hướng dẫn khắc phục thủ công, sau đó commit bản sửa lỗi vào lab branch, chạy lại code scanning và xác nhận rằng pull request check đã đạt cũng như alert ban đầu đã được khắc phục hoặc không còn tồn tại.

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

Mô tả

priority: P2

Goal

Teach a complete remediation loop: understand a CodeQL finding, use Copilot as an optional assistant, review the proposed fix, test it, and verify the security alert is resolved.

Scope

Use the alert introduced by the CodeQL lab. Prompts should ask Copilot to explain the weakness and propose a minimal secure change, but learners must validate the output rather than accept it automatically. Include an equivalent manual remediation path for learners without Copilot.

Acceptance criteria

  • The exercise provides model-agnostic example prompts for explanation, remediation, and test generation.
  • A manual secure implementation is available as a fallback.
  • Learners review the change against the CodeQL data flow and secure coding guidance.
  • Focused behavior tests cover the vulnerable path and pass after remediation.
  • Learners commit the fix to the lab branch and trigger code scanning again.
  • The pull request check passes and the original alert is shown as fixed or absent from the updated analysis.
  • The exercise states that Copilot output is untrusted until reviewed and tested.
  • No specific optional model or transient UI layout is required.
Ngôn ngữ chính
Python
Star
80
Fork
169
Merge trung bình
31 phút
Pull request đã merge (30 ngày)
1

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 github-samples/pets-workshop

Tất cả issue của github-samples/pets-workshop

Issue tương tự

Thêm issue về Python

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.