Skip to content

Commit

Permalink
Merge pull request #91 from GitGuardian/xblanchot/-/fix_sca_scan_diff…
Browse files Browse the repository at this point in the history
…_params

fix(sca): scan_diff did not send scan params because of use of post method with data
  • Loading branch information
xblanchot-gg authored Jan 18, 2024
2 parents c8a3c6b + f7b80be commit ce70ae4
Show file tree
Hide file tree
Showing 4 changed files with 231 additions and 1 deletion.
3 changes: 2 additions & 1 deletion pygitguardian/client.py
Original file line number Diff line number Diff line change
Expand Up @@ -722,7 +722,8 @@ def scan_diff(
) -> Union[Detail, SCAScanDiffOutput]:
result: Union[Detail, SCAScanDiffOutput]
try:
response = self.post(
response = self.request(
"post",
endpoint="sca/sca_scan_diff/",
files={"reference": reference, "current": current},
data={
Expand Down
Loading

0 comments on commit ce70ae4

Please sign in to comment.