chore(deps): update dependency semgrep to ~=1.34.0 #294
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
~=1.33.2
->~=1.34.0
Release Notes
returntocorp/semgrep (semgrep)
v1.34.0
Compare Source
Added
Added support for naming propagation when the left-hand side (lhs) of a variable definition is an identifier pattern
In certain languages like Rust, the variable definition is parsed as a pattern assignment, for example:
This commit ensures that the annotated type is propagated to the identifier pattern on the left-hand side (lhs) of the assignment, thus ensuring proper naming behavior. (gh-8365)
feat(metavar type): Metavariable type support for Julia
Metavariable type is supported for Julia. (gh-8367)
New --legacy flag to force the use of the old Python implementation of
Semgrep (also known as 'pysemgrep'). Note that by default most semgrep
commands are still using the Python implementation (except 'semgrep
interactive'), so in practice you don't need to add this flag, but as
we port more commands to OCaml, the new --legacy flag might be useful
if you find some regressions. (legacy)
Matching: Added the ability to use metavariables in parameters to match more
sophisticated kinds of parameters.
In particular, metavariables should now be able to match
self
parameters,such as in Rust.
So
fn $F($X, ...) { ... }
should matchfn $F(self) { }
. (pa-2937)taint-mode: Added experimental
control: true
option topattern-sources
,e.g.:
Such sources taint the "control flow" (or the program counter) so that it is
possible to implement reachability queries that do not require the flow of any
data. Thus, Semgrep reports a finding in the code below, because after
source()
the flow of control will reach
sink()
, even if no data is flowing between both:taint-mode: Taint sanitizers will be included in matching explanations. (pa-2975)
Changed
.yarn/
directory are now ignored by the default .semgrepignore patterns. (dotyarn)Fixed
(such as
foo!(&x)
andfoo!(*x)
) now properly transmit taint (pa-2951)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.