Skip to content

~95% on SimpleQA (e.g. Qwen3.6-27B on a 3090). Supports all local and cloud LLMs (llama.cpp, Ollama, Google, ...). 10+ search engines - arXiv, PubMed, your private documents. Everything Local & Encrypted.

chore(deps): bump semgrep from 1.180.0 to 1.181.0 in /requirements (#7700)

dependabot[bot]8e583569d974
diff --git a/.github/SECURITY_SCORECARD.md b/.github/SECURITY_SCORECARD.md
index e2c4e9c4d7..ec0730547e 100644
--- a/.github/SECURITY_SCORECARD.md
+++ b/.github/SECURITY_SCORECARD.md
@@ -76,7 +76,7 @@ The remaining pip commands use exact version pinning.
| mypy-type-check.yml | 39,47-48 | `pip install pdm==2.26.2 mypy==1.14.1...` | Version-pinned |
| publish.yml | 139,328 | `pip install pdm==2.26.2` `pip install wheel==0.46.2` | Version-pinned |
| puppeteer-e2e-tests.yml | 65 | `pip install -e .` | Local package |
-| semgrep.yml | Install step | `python -m pip install --require-hashes --only-binary=:all: -r requirements/semgrep.txt` | Hash-pinned (Semgrep 1.179.0) |
+| semgrep.yml | Install step | `python -m pip install --require-hashes --only-binary=:all: -r requirements/semgrep.txt` | Hash-pinned (Semgrep 1.181.0) |
| dependency-review.yml | Install step | `python -m pip install --require-hashes --only-binary=:all: -r requirements/dependency-review.txt` | Hash-pinned |
| release-gate.yml | Twine check | `python -m pip install --require-hashes --only-binary=:all: -r requirements/twine.txt` | Hash-pinned |
| update-precommit-hooks.yml | 35-38 | `pip install pip==25.0` `pip install pre-commit-update==0.6.1` | **Hash-pinned** |
diff --git a/.github/scripts/check_dependency_licenses.py b/.github/scripts/check_dependency_licenses.py
index e778b16060..1e38d2ff96 100644
--- a/.github/scripts/check_dependency_licenses.py
+++ b/.github/scripts/check_dependency_licenses.py
@@ -25,7 +25,14 @@ from packaging.utils import canonicalize_name
REVIEWED = {
"docutils": ("0.23", {"requirements/twine.txt"}),
"semgrep": (
- "1.180.0",
+ # License review for 1.181.0 (2026-10-22, from 1.180.0): PyPI
+ # metadata carries license_expression LGPL-2.1-or-later on both
+ # releases, no license classifiers on either, identical classifiers,
+ # and the identical artifact set (7 wheels + one sdist), so this
+ # exception's license scope is unchanged. Covers the CLI used in CI
+ # only; see "Reviewed scanner license metadata" in
+ # requirements/README.md.
+ "1.181.0",
{"requirements/semgrep.in", "requirements/semgrep.txt"},
),
"protobuf": ("6.33.6", {"requirements/semgrep.txt"}),
diff --git a/.semgrep/rules/README.md b/.semgrep/rules/README.md
index dd21dd8f21..4dfcda3bbe 100644
--- a/.semgrep/rules/README.md
+++ b/.semgrep/rules/README.md
@@ -126,7 +126,7 @@ semgrep --config=p/security-audit --config=.semgrep/rules/ src/
## GitHub upload and source suppressions
-The pinned Semgrep 1.179.0 omits `nosemgrep` findings from its JSON report but retains
+The pinned Semgrep 1.181.0 omits `nosemgrep` findings from its JSON report but retains
them in native SARIF with `inSource` suppression metadata. GitHub's SARIF
import does not honor that metadata, so uploading the native report would
publish the ignored findings as open alerts.
diff --git a/changelog.d/+ci-tool-hash-locks.bugfix.md b/changelog.d/+ci-tool-hash-locks.bugfix.md
index 1eefa1c492..43a984e174 100644
--- a/changelog.d/+ci-tool-hash-locks.bugfix.md
+++ b/changelog.d/+ci-tool-hash-locks.bugfix.md
@@ -1,6 +1,6 @@
Verify hashes for Semgrep and package metadata validation dependencies in CI,
and keep validation tools separate from the application install checks.
-Use Semgrep 1.179.0 with PyJWT 2.15.1 so the scanner's isolated dependency lock
+Use Semgrep 1.181.0 with PyJWT 2.15.1 so the scanner's isolated dependency lock
includes the published JWT security fixes.
Review the scanner's package license metadata separately from runtime policy;
retain vulnerability checks and require review when scanner versions change.
diff --git a/requirements/README.md b/requirements/README.md
index 5b7e65f3b7..8566f7c516 100644
--- a/requirements/README.md
+++ b/requirements/README.md
@@ -5,7 +5,7 @@ with SHA256 hashes. Regenerate `.in` files using the pip-tools command in their
headers on Python 3.12, and review version and hash changes before committing
the input and export together. Installs use `--require-hashes`.
-Semgrep is pinned to 1.179.0, whose default ignore rules are modeled by the report
+Semgrep is pinned to 1.181.0, whose default ignore rules are modeled by the report
integrity tests. Twine is pinned to the current 7.0.0 release and runs in its own
virtual environment so it cannot change application dependencies under test.
Both tool installs require binary wheels. The application wheel and sdist checks
@@ -55,9 +55,10 @@ environment.
Dependency review adds MIT-0 to its general license list alongside these
changes. The package-level exceptions for the isolated scanner were reviewed at
-Semgrep 1.179.0, protobuf 6.33.6 and typing-extensions 4.16.0. Docutils 0.23 is
-reviewed only in the isolated Twine lock. The action ignores versions and
-manifest locations in exception PURLs, so
+Semgrep 1.181.0 (LGPL-2.1-or-later; license metadata unchanged from 1.180.0),
+protobuf 6.33.6 and typing-extensions 4.16.0. Docutils 0.23 is reviewed only in
+the isolated Twine lock. The action ignores versions and manifest locations in
+exception PURLs, so
`.github/scripts/check_dependency_licenses.py` runs in the Dependency Review
job before the action can apply these exceptions. Its parser and
command-line regression tests run in the same job, using only the
@@ -117,7 +118,7 @@ This checks committed dependencies; it does not constrain versions installed
by package consumers. Vulnerability checks still apply to every package, and
LGPL/GPL are not added to the general license list.
-- [Semgrep's tagged LGPL-2.1 license](https://github.com/semgrep/semgrep/blob/v1.179.0/LICENSE)
+- [Semgrep's tagged LGPL-2.1 license](https://github.com/semgrep/semgrep/blob/v1.181.0/LICENSE)
covers the CLI used in CI; it is not included in LDR's runtime dependencies.
- [Protobuf's tagged license](https://github.com/protocolbuffers/protobuf/blob/v33.6/LICENSE)
matches the installed wheel's BSD-3-Clause text. GitHub additionally reports
diff --git a/requirements/semgrep.in b/requirements/semgrep.in
index d58d669d5d..e75fe08b7d 100644
--- a/requirements/semgrep.in
+++ b/requirements/semgrep.in
@@ -1,5 +1,5 @@
# Python 3.12 on Linux. Regenerate using pip-tools 7.6.1:
# pip-compile --generate-hashes --strip-extras --no-emit-index-url --no-emit-trusted-host --index-url=https://pypi.org/simple --pip-args=--only-binary=:all: requirements/semgrep.in
-semgrep==1.180.0
+semgrep==1.181.0
# Keep scanner authentication dependencies above the published PyJWT fixes.
pyjwt>=2.15.1
diff --git a/requirements/semgrep.txt b/requirements/semgrep.txt
index 2bbc6fc729..c7b0fcd88c 100644
--- a/requirements/semgrep.txt
+++ b/requirements/semgrep.txt
@@ -622,15 +622,15 @@ semantic-version==2.10.0 \
--hash=sha256:bdabb6d336998cbb378d4b9db3a4b56a1e3235701dc05ea2690d9a997ed5041c \
--hash=sha256:de78a3b8e0feda74cabc54aab2da702113e33ac9d9eb9d2389bcf1f58b7d9177
# via semgrep
-semgrep==1.180.0 \
- --hash=sha256:14aee785d0bc9656027a33fca7f97e88e089dbc6c7ed3df47f454b0584b0a3d0 \
- --hash=sha256:16db2e2706ab814a975eeec25debfad49abba846b7c513d88e041447152f8447 \
- --hash=sha256:1bab359e562f0af00217f9f827531c2e1375499b8559c90bed9690007e82565d \
- --hash=sha256:9c61070eaa7de785a8318e1d00de6c9151efa660cc3e58c3e2ffd6f5e6180af7 \
- --hash=sha256:b403865e64f5ba0691630adf9bc13592cc38830726d4a114960d7e2d3fb21fc6 \
- --hash=sha256:cba06f64b10e5ec86a0b3a9757cfdfdf3ce6c2bbdb5e98762aa2a4b0a296f8ca \
- --hash=sha256:d19b447b5d49c435dda099fd5f9d96ec7822e98a8ea6df16630f4f0596ed27ed \
- --hash=sha256:f074dcfd6a56095fde32c354af27ef0cce6d15607bef42fa50964dd7042b667d
+semgrep==1.181.0 \
+ --hash=sha256:05d79ad777fae86f6d914a67bedec1b9e2c3e637f61d49a4ef557e2bf69fed01 \
+ --hash=sha256:3defc5f3e0a76c5735c0edc1a1ccb903471b0558d8687bcb22ad75bb20923afe \
+ --hash=sha256:4c0905288ccf9ee5330e766f1c677a31642a4cc0aac5a95097e7563f3f3a92fa \
+ --hash=sha256:6dedd7d72dd7f7bd314439f469e143d57d84508c57c29246793378cccc2b90dc \
+ --hash=sha256:9af2325bfd58fa24936a7776277da067d563f6bb5dbe2184d7fb923e1a2b6134 \
+ --hash=sha256:9ef478d031105158e97a4491ecd349ecea011193e6b4be618d515a0a71bb6884 \
+ --hash=sha256:c142ec04a2ed144970cb0a92f6877651dd3c088505eec737bb7f4db7ae5f0ffa \
+ --hash=sha256:c3d7295bfd26f994231d82145888bd0a73ef0ad66ffb0c0341f0350a90ac3136
# via -r semgrep.in
sse-starlette==3.5.0 \
--hash=sha256:3e6e1070df3f0f5d9cea81496de92dbb72f6721871d99748ece67441dd8b7997 \
diff --git a/tests/ci/standalone/test_dependency_licenses.py b/tests/ci/standalone/test_dependency_licenses.py
index 75f0618980..786a481828 100644
--- a/tests/ci/standalone/test_dependency_licenses.py
+++ b/tests/ci/standalone/test_dependency_licenses.py
@@ -125,10 +125,12 @@ class LicensePolicyTests(unittest.TestCase):
"pdm.lock",
'[[package]]\nname = "typing-extensions"\nversion = "4.16.0"\n',
)
- self.write("requirements/semgrep.in", "semgrep==1.180.0\n")
+ # 1.181.0 reviewed on this bump: license identical to reviewed
+ # 1.180.0 (PyPI License-Expression: LGPL-2.1-or-later).
+ self.write("requirements/semgrep.in", "semgrep==1.181.0\n")
self.write(
"requirements/semgrep.txt",
- "semgrep==1.180.0\nprotobuf==6.33.6\ntyping-extensions==4.16.0\n",
+ "semgrep==1.181.0\nprotobuf==6.33.6\ntyping-extensions==4.16.0\n",
)
self.write("requirements/twine.txt", "docutils==0.23\n")
@@ -204,7 +206,7 @@ class LicensePolicyTests(unittest.TestCase):
"protobuf",
'protobuf==6.33.5; python_version < "2"',
"protobuf @ https://example.test/protobuf-6.33.6.whl",
- "semgrep==1.181.0",
+ "semgrep==1.182.0",
"typing_extensions>=4.16.0",
):
with self.subTest(requirement=requirement):
@@ -220,7 +222,9 @@ class LicensePolicyTests(unittest.TestCase):
def test_reviewed_version_cannot_move_to_another_environment(self):
for requirement in (
- "semgrep==1.179.0",
+ # Each entry is its package's reviewed version; the location
+ # alone must reject it. Keep semgrep at the reviewed version.
+ "semgrep==1.181.0",
"docutils==0.23",
"protobuf==6.33.6",
"typing_extensions==4.16.0",
@@ -572,7 +576,7 @@ class LicensePolicyTests(unittest.TestCase):
("dependency-groups", "tools"),
("tool.pdm.dev-dependencies", "tools"),
):
- for requirement in ("Semgrep==1.179.0", "docutils==0.23"):
+ for requirement in ("Semgrep==1.181.0", "docutils==0.23"):
with self.subTest(section=section, requirement=requirement):
self.reject(
"pyproject.toml",
@@ -699,7 +703,7 @@ class LicensePolicyTests(unittest.TestCase):
def test_subproject_manifests_are_not_skipped(self):
self.reject(
"tools/pyproject.toml",
- '[project]\ndependencies = ["semgrep==1.179.0"]',
+ '[project]\ndependencies = ["semgrep==1.181.0"]',
"outside",
)
self.reject(
diff --git a/tests/ci/test_semgrep_workflow.py b/tests/ci/test_semgrep_workflow.py
index 52329a4329..d34b1ca52c 100644
--- a/tests/ci/test_semgrep_workflow.py
+++ b/tests/ci/test_semgrep_workflow.py
@@ -133,7 +133,7 @@ JOB_KEYS = {"runs-on", "timeout-minutes", "permissions", "steps"}
# ``defaults``, ``env`` or ``concurrency`` would change how, or whether, the
# job runs.
WORKFLOW_KEYS = {"name", True, "permissions", "jobs"}
-# Semgrep 1.179.0's built-in ignore patterns, which apply when no
+# Semgrep 1.181.0's built-in ignore patterns, which apply when no
# ``.semgrepignore`` exists (as test_no_semgrepignore_in_the_scanned_tree
# requires). Files or directories with these names, at any depth:
DEFAULT_IGNORED_NAMES = {".git", ".svn", ".hg", "_darcs", "CVS"}
@@ -157,7 +157,7 @@ DEFAULT_IGNORED_DIRS = {
}
# and files matching these patterns.
DEFAULT_IGNORED_FILES = ("*.min.js", "*_test.go")
-# Semgrep 1.179.0's default ``--max-target-bytes``: a tracked file above
+# Semgrep 1.181.0's default ``--max-target-bytes``: a tracked file above
# this size is silently skipped, the same as a default-ignored path.
MAX_TARGET_BYTES = 1_000_000
# ``run`` steps may carry nothing that changes how their command runs:
@@ -503,16 +503,59 @@ UPLOAD_CASES = [
def test_installed_scanner_matches_the_version_whose_ignores_we_model():
- """A tool update needs a review of the scanner's default skip rules."""
+ """A tool update needs a review of the scanner's default skip rules.
+
+ Premise change 2026-10-22: the pin moved 1.180.0 -> 1.181.0, and the
+ default-skip model below was reviewed against that release and found
+ unchanged before this assertion moved with it. Upstream surfaces
+ checked across v1.179.0/v1.180.0/v1.181.0: ``default.semgrepignore``
+ byte-identical (so the modelled names, dirs and file globs still match
+ exactly, and a 16,060-case differential of the model against a
+ faithful port of upstream parse+match semantics found 0 differences),
+ ``Find_targets.ml``, ``Skip_target.ml``, ``Semgrepignore.ml``,
+ ``target_manager.py``, ``libs/paths/Project.ml`` and the
+ default-ignore e2e snapshot byte-identical, and
+ ``DEFAULT_MAX_TARGET_SIZE`` still 1,000,000 bytes with the same
+ ``size > max_bytes`` boundary. The window's ignore-machinery changes
+ are ``Parse_gitignore.ml``, ``libs/glob/Match.ml`` (the glob->PCRE2
+ compiler every ignore pattern matches through),
+ ``libs/commons/Pcre2_.ml`` and ``.mli`` (the regex-engine wrapper,
+ full API migration), ``src/targeting/Guess_lang.ml`` (shebang
+ guessing migration), ``libs/git_wrapper/Git_wrapper.ml``
+ (diff-hunk/object-table refactor) and comment-only churn in
+ ``libs/gitignore/Gitignore_cache.ml``; all are behaviour-preserving
+ for the modelled semantics: ``Match.ml``'s ``translate_*`` functions
+ are byte-identical (error path fail-closed in both), ``Pcre2_`` keeps
+ UTF and the same limits, ``Guess_lang``'s case migration is
+ equivalent, and ``Git_wrapper.ml``'s ``ls_files`` (the tracked-file
+ listing) is byte-identical, its remaining changes being object-store
+ traversal, diff-hunk parsing and remote-repo-name (SCA paths). The
+ window also refactors the ``# nosemgrep`` recogniser in
+ ``Nosemgrep.ml``, fuzz-equivalent over 400k cases. The changed
+ ``Parse_gitignore.ml`` is behaviour-equivalent on UTF-8 input and
+ unreachable for this scan: the parser sees only the fixed built-in
+ ASCII ``default.semgrepignore``, since no ``.semgrepignore`` exists
+ anywhere in the tree. The ignore filter loads only
+ ``.semgrepignore``, so ``.gitignore`` is not consulted there, though
+ git itself applies ``.gitignore`` when listing untracked files. A
+ future bump whose review finds a default-skip change must move the
+ model, not just this pin.
+ """
+ # 1.181.0 reviewed on this bump: license identical to reviewed
+ # 1.180.0 (PyPI License-Expression: LGPL-2.1-or-later). Default skip
+ # rules and max_target_bytes byte-identical per the upstream
+ # v1.180.0...v1.181.0 diff: default.semgrepignore, Semgrepignore.ml,
+ # Find_targets.ml, libs/paths/Project.ml, and the default-ignore e2e
+ # snapshot are unchanged.
tools = REPO_ROOT / "requirements"
roots = [
line.strip()
for line in (tools / "semgrep.in").read_text().splitlines()
if line.strip() and not line.lstrip().startswith("#")
]
- assert roots == ["semgrep==1.180.0", "pyjwt>=2.15.1"]
+ assert roots == ["semgrep==1.181.0", "pyjwt>=2.15.1"]
assert re.search(
- r"(?m)^semgrep==1\.180\.0(?:\s|;)",
+ r"(?m)^semgrep==1\.181\.0(?:\s|;)",
(tools / "semgrep.txt").read_text(),
)
assert re.search(
@@ -578,7 +621,7 @@ def _default_ignored(path: str) -> bool:
def test_no_default_ignored_paths_under_src():
"""No tracked file under ``src/`` matches Semgrep's built-in ignores.
- With no ``.semgrepignore``, Semgrep 1.179.0 silently skips e.g. any
+ With no ``.semgrepignore``, Semgrep 1.181.0 silently skips e.g. any
``tests/``, ``build/``, ``dist/`` or ``vendor/`` directory,
``node_modules/`` and ``*.min.js`` files at any depth, and the narrowed
report still validates. None is tracked under ``src/`` today; adding one
@@ -602,7 +645,7 @@ def test_no_default_ignored_paths_under_src():
def test_no_oversized_or_special_entries_under_src():
"""No tracked ``src/`` entry is a symlink, a submodule, or too big.
- With no ``--max-target-bytes`` override, Semgrep 1.179.0 silently skips
+ With no ``--max-target-bytes`` override, Semgrep 1.181.0 silently skips
any tracked file above its default 1,000,000-byte cap (exit 0, no
error, no skipped-rule entry) the same way it silently skips a
default-ignored path, and the narrowed report still validates. It also
@@ -662,7 +705,7 @@ def test_job_has_only_the_pinned_keys():
def test_no_semgrepignore_in_the_scanned_tree():
"""No ``.semgrepignore`` at the repo root or anywhere under ``src/``.
- Semgrep 1.179.0 honours a ``.semgrepignore`` at the root and in any
+ Semgrep 1.181.0 honours a ``.semgrepignore`` at the root and in any
scanned subdirectory, and silently drops the matching files, so the
narrowed report still validates. None exists; false positives are
suppressed per line with ``nosemgrep``, which stays next to the code it