-
Notifications
You must be signed in to change notification settings - Fork 9
chore(deps): update pre-commit hook returntocorp/semgrep to v1.122.0 #159
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
alma-renovate-bot
wants to merge
1
commit into
develop
Choose a base branch
from
renovate/pre-commit-repositories
base: develop
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
Conversation
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
remi-zuffinetti
approved these changes
Jan 27, 2025
75c39be
to
a6edce5
Compare
a6edce5
to
5890d31
Compare
5890d31
to
102952b
Compare
102952b
to
c853854
Compare
c853854
to
251a5ca
Compare
251a5ca
to
036ee5f
Compare
036ee5f
to
41cc396
Compare
c891eb3
to
ba502c5
Compare
ba502c5
to
42c7caa
Compare
42c7caa
to
15acca9
Compare
15acca9
to
41795b4
Compare
41795b4
to
af18da8
Compare
af18da8
to
b6bb4e0
Compare
b6bb4e0
to
ca727da
Compare
|
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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:
v1.103.0
->v1.122.0
Note: The
pre-commit
manager in Renovate is not supported by thepre-commit
maintainers or community. Please do not report any problems there, instead create a Discussion in the Renovate repository if you have any questions.Release Notes
returntocorp/semgrep (returntocorp/semgrep)
v1.122.0
Compare Source
1.122.0 - 2025-05-14
Added
Fixed
pro: Fixed inter-file naming bug affecting Go's struct-methods that could result
in false negatives.
Previously, adding a
pattern-inside
liketo a taint rule could cause some findings to incorrectly stop being reported. (code-7767)
PRO: Fixed the issue with type matching when a type has a type parameter, e.g., matching the pattern
std::vector<$T>
with the codestd::vector<int> v
in C++. (code-8443)Make Nuget dependency child parsing case insensitive (sc-2355)
Fixed bug where direct dev depenencies were not marked as direct when parsing package-lock.json projects. (sc-dev)
v1.121.0
Compare Source
1.121.0 - 2025-05-06
Added
tsconfig.json
in instances where multipletypescript "projects" (i.e., separately rooted source directories with their
own configurations not joined by a single
tsconfig.json
with projectreferences) are being scanned as one project under semgrep. This should result
in better name/module resolution in TypeScript. (code-7798)
include
,exclude
andfiles
properties intsconfig.json
. Projects which use more than one tsconfig in a given directorywhich apply to different sets of files under that directory should see
improvements in name/module resolution. (code-7798-a)
Changed
Fixed
-j1
and it can be overridden by the user. (interfile-num-jobs)--disable-nosem
was not properly causing nosemgrep'd findingsto be uploaded to the App. (saf-1982)
This fixes a regression introduced in 1.117.0 (sca-1705). (sc-1705)
v1.120.0
Compare Source
1.120.0 - 2025-04-22
Added
(e.g., _cargo, _opam, .svn) (semgrepignore)
--x-semgrepignore-filename
to change the name of.semgrepignore
files to something else. This can be used to scan a subproject in a separate semgrep invocation as the rest of the containing project. (semgrepignore-filename)Fixed
-j
setting so as to take into account the cgroupCPU quota on Linux. This will affect Docker and other containerized
environments that share resources on the same host. Use the new command
semgrep show resources --experimental
to show the default setting. (saf-1950)v1.119.0
Compare Source
1.119.0 - 2025-04-16
Added
semgrep show project-root
is now provided to displaythe project root path associated with a scan root. This is useful for
troubleshooting Semgrepignore (v2) issues. (saf-1936)
Fixed
tainting: Apply
taint_assume_safe_numbers
andtaint_assume_safe_booleans
earlier when considering to track taint through class fields and function
parameters. If the field/parameter has a number/Boolean type and the
corresponding option is set, it will just not be tracked. In some cases this
can help with performance.
Also added
short
/Short
to the list of integer types recognized bytaint_assume_safe_numbers
. (code-8345)IDE: The Semgrep VS Code Extension will no longer hang on
Getting code actions from Semgrep...
on saving a file, when updating rules. (saf-1954)
v1.118.0
Compare Source
1.118.0 - 2025-04-09
Fixed
Pro: Failure to parse a
package.json
file when analysing JavaScript orTypeScript is no longer a fatal error. (code-8227)
taint-mode: Fixed bug in taint "auto-cleaning" where we automatically clean the
LHS of an assigmnet if the RHS is clean, provided that the LHS is not subject to
any "side-effects". In some cases, this could cause the taint analysis to timeout.
Some combinations of rules and repos will see a major perf improvement, in other
cases it may not be noticeable. (code-8288)
In a Semgrep rule's
metadata
section, two fields may provide URLs:source
: populated dynamically by the Semgrep registry serving the rule, it's a URL thatoffers information about the rule.
source-rule-url
: optional string, a URL for the source of inspiration for the rule.The SARIF format supports only one URL under the field
helpUri
.Previously, Semgrep populated the SARIF
helpUri
field only withmetadata.source
.This fix is to use
metadata.source
if available, otherwise falling back tometadata.source-rule-url
.Contributed by @candrews. (gh-10891)
v1.117.0
Compare Source
1.117.0 - 2025-04-02
Added
that start with
./
. For example, the pattern./*.py
should be written as/*.py
to have the desired effect of excluding the.py
fileslocated in the same directory as the
.semgrepignore
file containingthe pattern.
To minimize surprises for users switching to Semgrepignore v2,
we'll be interpreting automatically
./*.py
as/*.py
for the timebeing so as to match the legacy Semgrepignore v1 behavior. Users should not
rely on this since it doesn't comply with the Gitignore/Semgrepignore
standard and will be removed in the future. (tolerate-semgrepignore-v1-dotslash)
Semgrepignore v2 by default. This brings the behavior of the Semgrepignore file
exclusions closer to Git and
.gitignore
files. There can nowbe multiple
.semgrepignore
files in the project. The.semgrepignore
filein the current folder is no longer consulted unless it in the project.
Negated patterns are now supported such as
!scanme.py
as with Gitignore.Some bugs were fixed. (use-semgrepignore-v2)
Changed
Fixed
*
and?
to match file names with a leading period. This matches the behavior of Gitignore and Semgrepignore v1. (semgrepignore-dotfiles)v1.116.0
Compare Source
1.116.0 - 2025-03-28
Fixed
v1.114.0
Compare Source
1.114.0 - 2025-03-19
Fixed
Pro Engine now more accurately tracks the scope of Python local variables. For
example, the following code defines two
z
variables that should be trackedseparately.
The Pro engine now correctly recognizes that the
z
assigned toa
is the onedefined in the local scope, not the global scope. (code-8114)
v1.113.0
Compare Source
1.113.0 - 2025-03-17
Fixed
v1.112.0
Compare Source
1.112.0 - 2025-03-13
Added
write the pattern like:
class $C {
...
$FUNC() { ... }
...
}
``` (code-8242)
Fixed
the identification of a statement like
return foo()
as one such sink. (code-8199)--gitlab-secrets
output has been updated to conform to GitLab JSON schema (scrt-849)--semgrepignore-v2
changed to be closer to the legacySemgrepignore v1.
.gitignore
files are no longer loaded automaticallyas part of the Semgrepignore v2 exclusion mechanism.
Loading a
.gitignore
file must be doneby placing
:include .gitignore
in the.semgrepignore
fileas was the case with Semgrepignore v1. (semgrepignore-v1-compat)
v1.111.0
Compare Source
1.111.0 - 2025-03-04
Changed
.semgrepignore
file lookup using theSEMGREP_R2C_INTERNAL_EXPLICIT_SEMGREPIGNORE
environment variable. This was used by semgrep-action whichhas been deprecated. (semgrep-action)
Fixed
in JS/TS. (code-8065)
the project root to reduce inaccuracies in module resolution. This change
mitigates the risk of resolving module specifiers to incorrect paths,
particularly in cases involving common library names (e.g.,
django
). (code-8146)findings when using the --gitlab-secrets flag. (scrt-833)
v1.110.0
Compare Source
1.110.0 - 2025-02-26
Added
pro: Inter-file analysis will now process Javascript and Typescript files
together, so that taint can be tracked across both languages. (code-8076)
Pro: new
metavariable-name
operator which allows for expressing a constraintagainst the fully qualified name or nearest equivalent of a metavariable
(useful mainly in JavaScript and TypeScript, where there is no first-class
syntax for this, or where such names or pseudo-names containt symbols which
cannot appear in identifiers). Requires pro naming passes and works best with
interfile naming.
Additional documentation forthcoming. (code-8121)
Changed
Fixed
Fixed a regression in pro interfile mode where type inference for the
var
keyword in Java was not functioning correctly. (code-7991)
PRO: Fix the
range not found
error when using a metavariable pattern match ona typed metavariable. For example, the following metavariable pattern rule will
no longer trigger the error:
lsp will no longer send diagnostics where the message is
MarkupContent
sinceour current implementation does not discriminate on the client capability for
recieiving such diagnostics (to-be-added in 3.18). (code-8120)
Yarn.lock parser now correctly denotes NPM organization scope. (sc-2107)
Packages in
Package.resolved
without a version are now ignored. (sc-2116)Updated
Package.swift
parser to support:v1.109.0
Compare Source
1.109.0 - 2025-02-19
Changed
Fixed
See https://semgrep.dev/playground/s/ReJQO (code-7967)
to prevent unintended interactions. See https://semgrep.dev/playground/s/7KE0k. (code-8054)
optimized the matching of ordered
..., PAT, ...
patterns. (saf-682)v1.108.0
Compare Source
1.108.0 - 2025-02-12
Added
Changed
"semgrep.policy:" are now filtered from the JSON output unless you
are logged in with the Semgrep appsec platform.
See https://semgrep.dev/docs/semgrep-appsec-platform/json-and-sarif#json for more information. (metadata-filter)
Fixed
git worktree remove
more gracefully.Instead of erroring, we continue to scan so that the user can still get results, but
log the error. It also adds a guard so that this failure is less likely to happen
and will include more debugging information when it does. (sms-521)
v1.107.0
Compare Source
1.107.0 - 2025-02-04
Added
Fixed
multiple inheritance. The type that appears later takes precedence when
resolving fields. For example, in
class A extends B with C with D
, the orderof precedence is D, C, B, and A. (code-7891)
See https://semgrep.dev/playground/s/X5kZ4. (code-7987)
like --semgrep-branch (saf-1746)
Infra/Release Changes
v1.106.0
Compare Source
1.106.0 - 2025-01-29
See 1.105.0 Changelog:
1.105.0 - 2025-01-29
Added
Changed
Fixed
v1.104.0
Compare Source
1.104.0 - 2025-01-22
Changed
Fixed
pro: Fixed bug in inter-file matching of subtypes. When looking to match some
type
A
, Semgrep will match any typeB
that is a subtype ofA
, but in certainsituations this did not work. (code-7963)
taint-mode: Make traces record assignments that transfer taint via shapes.
For example, in code like:
The assignment
b1 = b
should be recorded in the trace but previously it was not. (code-7966)Python: Parser updated to the most recent tree-sitter grammar.
Parse rate from 99.8% -> 99.998%. (saf-1810)
Configuration
📅 Schedule: Branch creation - "* * * * 0,6" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ 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 Renovate Bot.