Skip to content

Commit 9a2889b

Browse files
annikaleesalolivaresemjin
authored
chore: Update cli parameters with always fail open (#298)
Adds a flag to the cli config to always fail open and suppress errors when set - [X] I ran `make setup && make` to update the generated code after editing a `.atd` file (TODO: have a CI check) - [X] I made sure we're still backward compatible with old versions of the CLI. For example, the Semgrep backend need to still be able to *consume* data generated by Semgrep 1.17.0. See https://atd.readthedocs.io/en/latest/atdgen-tutorial.html#smooth-protocol-upgrades --------- Co-authored-by: Sal Olivares <[email protected]> Co-authored-by: Emma Jin <[email protected]>
1 parent 2f2de99 commit 9a2889b

7 files changed

+60
-4
lines changed

semgrep_output_v1.atd

+3
Original file line numberDiff line numberDiff line change
@@ -1472,6 +1472,9 @@ type engine_configuration = {
14721472
~generic_slow_rollout: bool;
14731473
(* from 1.63.0 *)
14741474
?historical_config: historical_configuration option;
1475+
(* from 1.93 *)
1476+
(* sent by the app to indicate that fail open should always be enabled, overriding the CLI flag. coupling: server/semgrep_app/saas/models/deployment_products_mixin.py *)
1477+
~always_suppress_errors: bool;
14751478
}
14761479

14771480
(* ----------------------------- *)

semgrep_output_v1.jsonschema

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

semgrep_output_v1.proto

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

semgrep_output_v1.py

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

semgrep_output_v1.ts

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

semgrep_output_v1_j.ml

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

semgrep_output_v1_j.mli

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

0 commit comments

Comments
 (0)