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

Open
#14 0 comments 0 reactions 0 assignees View on GitHub

Maintainers usually reply within 1 day

@nyx60002 is already working on this.

Since Dec 4, 2026.

  • #19 by @nyx60002 — open

Assessment

Difficulty
2/5
Estimated time
1-3 hours
Newbie friendliness
45/100
Issue type
Feature
Clarity
Clearly specified
Activity status
Stale
Tech stack
git, python
Domain
security, testing

Research direction

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.

Written by the indexing model from the issue text.

Description

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

Dominant language
Python
Stars
1
Forks
1
Avg merge
2h 28m
Merged PRs (30d)
6

Getting set up

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

More from JTHCode/secretguard

All issues in JTHCode/secretguard

Similar issues

More Python issues

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.