Skip to content

Commit 03270eb

Browse files
authored
Merge pull request #36 from opengrep/dm/add-taint-intrafile-flag
Add `--taint-intrafile` flag. Requires Opengrep >= v1.11.5.
2 parents fbe2c34 + 6822be2 commit 03270eb

File tree

3 files changed

+7
-4
lines changed

3 files changed

+7
-4
lines changed

package-lock.json

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
{
22
"name": "opengrep-playground",
33
"productName": "opengrep-playground",
4-
"version": "1.10.2",
4+
"version": "1.11.5",
55
"description": "Opengrep Playgorund Editor",
66
"main": ".vite/build/main.js",
77
"scripts": {

src/components/RuleResults.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ async function runBinaryForScan(binaryPath, runScanWithoutMatchingExplanations)
155155
'--json',
156156
'--dataflow-traces',
157157
'--experimental',
158+
'--taint-intrafile',
158159
];
159160
160161
if (!runScanWithoutMatchingExplanations) {
@@ -185,7 +186,9 @@ function extractScanErrors(jsonOutput) {
185186
}
186187
187188
async function runBinaryForTests(binaryPath) {
188-
const testArgs = ['scan --test', `-f "${store.ruleFilePath}" "${store.codeSampleFilePath}"`, '--json', '--experimental'];
189+
const testArgs =
190+
['scan --test', `-f "${store.ruleFilePath}" "${store.codeSampleFilePath}"`,
191+
'--json', '--experimental', '--taint-intrafile'];
189192
190193
const testResponse = await runBinary(`"${binaryPath}"`, testArgs)
191194
const testResults = JSON.parse(testResponse.output);

0 commit comments

Comments
 (0)