From f096df3bf141da04604d3f2d41e881cd647a15bf Mon Sep 17 00:00:00 2001 From: Dimitris Mostrous Date: Mon, 3 Nov 2025 15:17:25 +0200 Subject: [PATCH 1/2] add `--taint-intrafile` flag Note: this requires Opengrep v1.11.5 or higher. --- src/components/RuleResults.vue | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/components/RuleResults.vue b/src/components/RuleResults.vue index 2216264..6d0a7e6 100644 --- a/src/components/RuleResults.vue +++ b/src/components/RuleResults.vue @@ -155,6 +155,7 @@ async function runBinaryForScan(binaryPath, runScanWithoutMatchingExplanations) '--json', '--dataflow-traces', '--experimental', + '--taint-intrafile', ]; if (!runScanWithoutMatchingExplanations) { @@ -185,7 +186,9 @@ function extractScanErrors(jsonOutput) { } async function runBinaryForTests(binaryPath) { - const testArgs = ['scan --test', `-f "${store.ruleFilePath}" "${store.codeSampleFilePath}"`, '--json', '--experimental']; + const testArgs = + ['scan --test', `-f "${store.ruleFilePath}" "${store.codeSampleFilePath}"`, + '--json', '--experimental', '--taint-intrafile']; const testResponse = await runBinary(`"${binaryPath}"`, testArgs) const testResults = JSON.parse(testResponse.output); From 6822be2396e1b1a9977121d8f25c365f4689ec73 Mon Sep 17 00:00:00 2001 From: Dimitris Mostrous Date: Mon, 3 Nov 2025 15:21:34 +0200 Subject: [PATCH 2/2] bump version --- package-lock.json | 4 ++-- package.json | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/package-lock.json b/package-lock.json index f29c708..de70a47 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,12 +1,12 @@ { "name": "opengrep-playground", - "version": "1.10.2", + "version": "1.11.5", "lockfileVersion": 3, "requires": true, "packages": { "": { "name": "opengrep-playground", - "version": "1.10.2", + "version": "1.11.5", "license": "MIT", "dependencies": { "@fortawesome/fontawesome-svg-core": "^6.7.2", diff --git a/package.json b/package.json index 92ad9c4..ae72fde 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "opengrep-playground", "productName": "opengrep-playground", - "version": "1.10.2", + "version": "1.11.5", "description": "Opengrep Playgorund Editor", "main": ".vite/build/main.js", "scripts": {