Skip to content

Commit af240ef

Browse files
authored
Merge pull request #1044 from secureCodeBox/revert-1041-dependencies/upgrading-semgrep-to-0.85.0
Revert "[SCB-Bot] Upgraded semgrep from 0.84.0 to 0.85.0" The new update for semgrep has changed how files are found - it now also considers hidden folders. This leads to the test file in the integration tests being found either twice or not at all: apparently K8s, when mounting ConfigMaps, will put the real file in a hidden folder, and then symlink to it. As there is currently an inconsistency in how symlinks are handled by semgrep (see semgrep/semgrep#4827), I cannot simply tell the integration test the path to the (symlink) file directly, because this will be considered as "not existing" by semgrep. As I don't want to update the test case with an ugly hack (e.g., trying to wildcard my way into the hidden folder k8s uses), and don't want to update the expected number of results to two times the results we would actually expect, I'm reverting the change for now to get the CI to turn green again. When the dependency bot opens a new PR, we can find a nice way of getting the CI to pass, or wait for the next semgrep release that fixes the inconsistency in symlink handling and then merge that.
2 parents ef300f6 + f8e2bee commit af240ef

3 files changed

Lines changed: 3 additions & 3 deletions

File tree

scanners/semgrep/Chart.yaml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ version: "v3.1.0-alpha1"
1818
# incremented each time you make changes to the application. Versions are not expected to
1919
# follow Semantic Versioning. They should reflect the version the application is using.
2020
# It is recommended to use it with quotes.
21-
appVersion: "0.85.0"
21+
appVersion: "0.84.0"
2222
annotations:
2323
versionApi: https://api.github.com/repos/returntocorp/semgrep/releases/latest
2424
kubeVersion: ">=v1.11.0-0"

scanners/semgrep/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ title: "Semgrep"
33
category: "scanner"
44
type: "Repository"
55
state: "released"
6-
appVersion: "0.85.0"
6+
appVersion: "0.84.0"
77
usecase: "Static Code Analysis"
88
---
99

scanners/semgrep/docs/README.DockerHub-Parser.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -42,7 +42,7 @@ You can find resources to help you get started on our [documentation website](ht
4242

4343
## Supported Tags
4444
- `latest` (represents the latest stable release build)
45-
- tagged releases, e.g. `0.85.0`
45+
- tagged releases, e.g. `0.84.0`
4646

4747
## How to use this image
4848
This `parser` image is intended to work in combination with the corresponding security scanner docker image to parse the `findings` results. For more information details please take a look at the documentation page: https://docs.securecodebox.io/docs/scanners/semgrep.

0 commit comments

Comments
 (0)