v1.172.0
Release v1.172.0
Added 1
- Added support for the OpenTofu .tofu file extension, which are now automatically detected and scanned as Terraform
Changed 2
- Updated the Ruby parser to tree-sitter-ruby v0.23.1, improving support for !=, case/when expressions with line breaks, and element references that take a block
- Extended the window for collecting git contributor information during semgrep ci from the last 30 days to the last 90 days
Fixed 5
- Semgrep now prints richer error messages on segfaults when --debug is NOT passed, matching the segfault error output when --debug is passed
- Fixed rare, nondeterministic crashes and incorrect results caused by an OCaml compiler bug by building against a compiler fork that backports the upstream fix
- Fixed excessive heap growth after explicit major garbage collections by building against an OCaml compiler that improves garbage collection duty cycle pacing
- Improved the Scan Status output when no code rules will run by removing the confusing '0 Code rules' message and explicitly stating whether code scanning is not enabled or there are no code rules to run
- Fixed lockfileless Gradle dependency resolution failing with 'Parsing dependency output failed' by pinning the github-dependency-graph-gradle-plugin to 1.4.1
1.172.0 - 2026-07-28
### Added
- Added support for the OpenTofu
.tofufile extension. Because OpenTofu uses the same HCL grammar as Terraform,.tofufiles are now automatically detected and scanned as Terraform, so they are picked up by recursive scans and Terraform rulesets (e.g.p/terraform) with no extra configuration. (ENGINE-2884)
### Changed
- Updated the Ruby parser to tree-sitter-ruby v0.23.1, improving support for
!=, case/when expressions with line breaks, and element references that take a block. (LANG-206) - The window for collecting git contributor information during
semgrep cihas been extended from the last 30 days to the last 90 days, to match the updated usage policy. (contributor-window-90-days)
### Fixed
- Semgrep will now print richer error messages on segfaults when
--debugis NOT passed, matching the segfault error output when--debugis passed (engine-segv) - Fixed a source of rare, nondeterministic crashes and incorrect results caused by an OCaml compiler bug. Semgrep now builds against a compiler fork that backports the upstream fix. (ocaml_codegen_fix)
- Fixed excessive heap growth after explicit major garbage collections. Semgrep now builds against an OCaml compiler that improves garbage collection duty cycle pacing. (ocaml_gc_pacing_fix)
- Improved the
Scan Statusoutput when no code rules will run (e.g. a Secrets-only or Supply-Chain-only scan). The summary line no longer reports a confusing "0 Code rules", and the "Code Rules" section now states explicitly either that code scanning is not enabled or that there are no code rules to run, instead of printing an empty table. (ENGINE-2878) - Fixed lockfileless Gradle dependency resolution failing with "Parsing dependency output failed (Resolve_gradle.gradle_resolved_dependency)". The github-dependency-graph-gradle-plugin used during resolution was fetched unpinned, and its 1.4.2 release renamed keys in its JSON output. The plugin is now pinned to 1.4.1. (sc-3738)