@@ -28,7 +28,7 @@ def test_gitleaks_stable_patterns_fail(tmp_path: Path, fname: str, content: str)
28
28
run ("git add -A" ) # pre-commit's gitleaks scans the staged index
29
29
30
30
with pytest .raises (AssertionError , match = r"(?i)(leak|gitleaks|secret)" ):
31
- run ("./ venv/bin/tox -e pre-commit" )
31
+ run (".venv/bin/tox -e pre-commit" )
32
32
33
33
34
34
# --- Sealed-secrets: YAML/YML allowlisted; non-YAML should be flagged ---
@@ -84,7 +84,7 @@ def test_gitleaks_yaml_allowlist_for_sealed_secrets_yaml(tmp_path: Path):
84
84
run_yaml = make_venv (proj_yaml )
85
85
(proj_yaml / "secret.yaml" ).write_text (sealed_yaml )
86
86
run_yaml ("git add -A" )
87
- run_yaml ("./ venv/bin/tox -e pre-commit" )
87
+ run_yaml (".venv/bin/tox -e pre-commit" )
88
88
89
89
90
90
def test_gitleaks_yaml_allowlist_for_sealed_secrets_yml (tmp_path : Path ):
@@ -110,7 +110,7 @@ def test_gitleaks_yaml_allowlist_for_sealed_secrets_yml(tmp_path: Path):
110
110
run_yml = make_venv (proj_yml )
111
111
(proj_yml / "secret.yml" ).write_text (sealed_yaml )
112
112
run_yml ("git add -A" )
113
- run_yml ("./ venv/bin/tox -e pre-commit" )
113
+ run_yml (".venv/bin/tox -e pre-commit" )
114
114
115
115
116
116
def test_leaky_code_fails_gitleaks (tmp_path : Path ):
@@ -126,4 +126,4 @@ def test_leaky_code_fails_gitleaks(tmp_path: Path):
126
126
(proj_code / "leaky.py" ).write_text (f'api_key = "{ blob } "\n ' )
127
127
run_code ("git add -A" )
128
128
with pytest .raises (AssertionError , match = r"(?i)(leak|gitleaks|secret)" ):
129
- run_code ("./ venv/bin/tox -e pre-commit" )
129
+ run_code (".venv/bin/tox -e pre-commit" )
0 commit comments