Skip to content

Commit

Permalink
feat(#306): bru cli support for allowScriptFilesystemAccess
Browse files Browse the repository at this point in the history
  • Loading branch information
helloanoop committed Oct 6, 2023
1 parent 5a89d12 commit 0f3a8a8
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions packages/bruno-cli/src/runner/run-single-request.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ const runSingleRequest = async function (

request = prepareRequest(bruJson.request);

const allowScriptFilesystemAccess = get(brunoConfig, 'filesystemAccess.allow', false);

// make axios work in node using form data
// reference: https://github.com/axios/axios/issues/1006#issuecomment-320165427
if (request.headers && request.headers['content-type'] === 'multipart/form-data') {
Expand Down Expand Up @@ -65,7 +67,8 @@ const runSingleRequest = async function (
collectionVariables,
collectionPath,
null,
processEnvVars
processEnvVars,
allowScriptFilesystemAccess
);
}

Expand Down Expand Up @@ -206,7 +209,8 @@ const runSingleRequest = async function (
collectionVariables,
collectionPath,
null,
processEnvVars
processEnvVars,
allowScriptFilesystemAccess
);
}

Expand Down Expand Up @@ -247,7 +251,8 @@ const runSingleRequest = async function (
collectionVariables,
collectionPath,
null,
processEnvVars
processEnvVars,
allowScriptFilesystemAccess
);
testResults = get(result, 'results', []);
}
Expand Down

0 comments on commit 0f3a8a8

Please sign in to comment.