1.70.0 - 2024-04-24
Added
-
Added guidance for resolving API token issues in CI environments. (gh-10133)
-
The osemgrep show command supports 2 new options:
dump-ast
dump-pattern
.
Seeosemgrep show --help
for more information. (osemgrep_show) -
Added additional output flags which allow you to write output to multiple files in multiple formats.
For example, the comand
semgrep ci --text --json-output=result.json --sarif-output=result.sarif.json
Displays text output on stdout, writes the output that would be generated by passing the--json
flag
toresult.json
, and writes the output that would be generated by passing the--sarif
toresult.sarif.json
. (saf-341) -
Added an experimental feature for users to use osemgrep to format
SARIF output.When both the flags --sarif and --use-osemgrep-sarif are specified,
semgrep will use the ocaml implementation to format SARIF.This flag is experimental and can be removed any time. Users must not
rely on it being available. (saf-978)
Changed
- The main regex engine is now PCRE2 (was PCRE). While the syntax is mostly
compatible, there are some minor instances where updates to rules may be
needed, since PCRE2 is slightly more strict in some cases. For example, while
we previously accepted[\w-.]
, such a pattern would now need to be written
[\w.-]
or[\w\-.]
since PCRE2 rejects the first as having an invalid range. (scrt-467)
Fixed
-
Semgrep LS now waits longer for users to login (gh-10109)
-
When semgrep ci finishes scanning and uploads findings, it tells the
app to mark the scan as completed.For large findings, this may take a while and marking the scan as
completed may timeout. When a scan is not marked as completed, the app
may show that the repo is still processing, and confuses the user.This change increases the timeout (previously 20 minutes) to 30
minutes. (saf-980) -
Fix
semgrep ci --oss-only
when secrets product is enabled. (scrt-223)