Check `git -C <dir>` commands like plain `git` commands

Đang mở
#14 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

@nyx60002 đang làm issue này rồi.

Từ ngày 4/12/2026.

  • #19 của @nyx60002 — đang mở

Đá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
45/100
Loại issue
Tính năng
Độ rõ ràng
Đặc tả rõ ràng
Mức độ hoạt động
Đình trệ
Công nghệ
git, python
Lĩnh vực
security, testing

Hướng nghiên cứu

Start by finding the code that checks plain git add, git commit, and git push commands, then review tests/test_redteam.py for the existing regression-test patterns. Implement equivalent handling for git -C <dir> so the checks run against <dir>, and verify with a blocked case and an allowed case using fake values. The linked pull request indicates this work is already underway.

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

Mô tả

enhancement good first issue

SecretGuard checks git add, git commit and git push for secrets files and secrets in settings files. A command that names another folder with git -C <dir> add -A is not checked yet (listed under known gaps in the README).

Done when

  • git -C <dir> add|commit|push gets the same checks, run against <dir>.
  • Regression tests in tests/test_redteam.py cover a blocked case and an allowed case, using fake values only.

Generated by Claude Code

Ngôn ngữ chính
Python
Star
1
Fork
1
Merge trung bình
2 giờ 28 phút
Pull request đã merge (30 ngày)
6

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 JTHCode/secretguard

Tất cả issue của JTHCode/secretguard

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.