Skip to content
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

Address false positives for SQLPad and Lerna #375

Merged
merged 3 commits into from
Jul 22, 2024

Conversation

egibs
Copy link
Member

@egibs egibs commented Jul 22, 2024

This PR addresses false positives seen here:

The main issue was the base64_python_functions rule triggering on TypeScript code so I added several common JS strings that we can ignore which cleared up the match strings.

The other critical was a third-party rule which was matching all three of these strings for a WASM runtime file (/usr/local/lib/node_modules/lerna/node_modules/@napi-rs/wasm-runtime/dist/runtime.js):

strings:
    $wasm = "WebAssembly.Module" base64
    $int = "WebAssembly.Instance" base64
    $inst = "WebAssembly.instantiate" base64

Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
@egibs egibs requested review from tstromberg and hectorj2f July 22, 2024 14:34
Copy link
Member

@hectorj2f hectorj2f left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'd be good to have tests for these

Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
@egibs
Copy link
Member Author

egibs commented Jul 22, 2024

I'd be good to have tests for these

Added samples in 635c47c (#375)!

@egibs egibs merged commit 64243dd into chainguard-dev:main Jul 22, 2024
6 checks passed
egibs added a commit to egibs/malcontent that referenced this pull request Aug 5, 2024
* Address false positives for SQLPad and Lerna

Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>

* Add samples for Lerna and SQLPad

Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>

---------

Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
@egibs egibs deleted the 20240722-false-positives branch August 5, 2024 16:36
egibs added a commit to egibs/malcontent that referenced this pull request Sep 25, 2024
* Address false positives for SQLPad and Lerna

Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>

* Add samples for Lerna and SQLPad

Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>

---------

Signed-off-by: egibs <20933572+egibs@users.noreply.github.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants