Skip to content

Commit 2fe3ffd

Browse files
committed
Add batch_info type to ci_scan_results
1 parent dbee17d commit 2fe3ffd

7 files changed

+376
-4
lines changed

semgrep_output_v1.atd

+9
Original file line numberDiff line numberDiff line change
@@ -1030,6 +1030,7 @@ type features = {
10301030
~autofix: bool;
10311031
~deepsemgrep: bool;
10321032
~dependency_query: bool;
1033+
(* since semgrep 1.74.0 *)
10331034
~can_batch_upload: bool;
10341035
}
10351036

@@ -1363,6 +1364,11 @@ type finding_hashes = {
13631364
(* CI scan results *)
13641365
(* ----------------------------- *)
13651366

1367+
type batch_info = {
1368+
num_batches: int;
1369+
current_batch: int;
1370+
}
1371+
13661372
(* Sent by the CLI to /findings_and_ignores (a.k.a. /results) *)
13671373
type ci_scan_results = {
13681374
(* TODO: ?version: version option; *)
@@ -1382,6 +1388,9 @@ type ci_scan_results = {
13821388
(* since semgrep 1.38.0 *)
13831389
(* this data was originally sent to /complete, but we want to start sending it /results *)
13841390
?dependencies: ci_scan_dependencies option;
1391+
1392+
(* since semgrep 1.74.0 *)
1393+
?batch_info: batch_info option;
13851394
}
13861395

13871396
(* See https://semgrep.dev/docs/usage-limits

semgrep_output_v1.jsonschema

+10-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1.proto

+7-1
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1.py

+35
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

semgrep_output_v1.ts

+22
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)