Skip to content

Commit ce70ae4

Browse files
authored
Merge pull request #91 from GitGuardian/xblanchot/-/fix_sca_scan_diff_params
fix(sca): scan_diff did not send scan params because of use of post method with data
2 parents c8a3c6b + f7b80be commit ce70ae4

File tree

4 files changed

+231
-1
lines changed

4 files changed

+231
-1
lines changed

pygitguardian/client.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -722,7 +722,8 @@ def scan_diff(
722722
) -> Union[Detail, SCAScanDiffOutput]:
723723
result: Union[Detail, SCAScanDiffOutput]
724724
try:
725-
response = self.post(
725+
response = self.request(
726+
"post",
726727
endpoint="sca/sca_scan_diff/",
727728
files={"reference": reference, "current": current},
728729
data={

0 commit comments

Comments
 (0)