chore(deps): update returntocorp/semgrep docker tag to v1.47.0 #722
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.46.0
->1.47.0
Release Notes
returntocorp/semgrep (returntocorp/semgrep)
v1.47.0
Compare Source
1.47.0 - 2023-11-01
Added
taint-mode: Added a Boolean
exact
option to sources and sanitizers to makematching stricter (default is
false
).If you specify a source such as
foo(...)
, and Semgrep encountersfoo(x)
,by default
foo(x)
,foo
, andx
, will all be considered tainted. If you addexact: true
to the source specification, then onlyfoo(x)
will be regardedas tainted, that is the "exact" match for the specification. The same applies
to "exact" sanitizers. (gh-5897)
Added
sg
alias for semgrep binary which is functionally equivalent towith one fewer step. (gh-9117)
secrets: Added independent targeting from other semgrep products.
This change allows Secrets to scan all tracked files. In particular, those ignored
by semgrepignore will now get scanned. There will be additional changes
in the future to allow configuring the files that are scanned secrets. (gh-9125)
Adds an optional
--no-secrets-validation
flag to skip secrets validation. (no-secrets-validation)Secrets rules (i.e., with metadata product: secrets) now mask, by replacing
with *s the ending component of the matched content. (pa-2333)
Commutativity Support for Comparison Operators EQ and NOT_EQ
We've introduced the
commutative_compop
rule option, enabling commutativityfor comparison operators EQ and NOT_EQ. With this option,
a == b
will alsomatch
b == a
, anda != b
will also matchb != a
. (pa-3140)Validation errors are separated from unvalided findings in the terminal output. (validation-error)
Changed
For taint rules using labels (experimental) Semgrep now preferably picks a
source without
requires
for the taint traceSemgrep now prioritizes taint sources without
requires
condition whenchoosing a representative taint trace from multiple source traces. This helps
users to more clearly identify the initial taint source when multiple traces
are involved. (pa-3122)
Unreachable supply chain findings report only on line dependency was found in (no longer incorrectly including the next line)
this change could affect syntactic_id generated by said findings (sc-727)
When running
semgrep ci --supply-chain
, defaults to using OSS engine even ifPRO engine would otherwise be used (turned on in semgrep.dev, or with
--pro
flag) (supply-chain-oss)Fixed
semgrep install-semgrep-pro --custom-binary ...
when logged out. (gh-9051)while processing targets. (gh-9091)
order to handle trailing newlines. This affected Semgrep's JSON output. If a
metavariable
$X
was bound to a piece of text containing a trailing newline,such as "a\n", where the starting position was e.g. at line 1, Semgrep reported
that the end position was at line 2, when in fact the text is entirely within
line 1. If the text happened to be at the end of a file, Semgrep could report
an end position that was outside the bounds of the file. (lang-18)
unsafe
blocks are now translated into the Dataflow IL so e.g. it becomespossible for taint analysis to track taint from/to an
unsafe
block. (pa-3218)Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, 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.