We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a06285d commit aa64deaCopy full SHA for aa64dea
danger/dangerfile.js
@@ -196,7 +196,7 @@ async function CheckFromExternalChecks() {
196
const workspaceDir = '/github/workspace';
197
const customPath = `${workspaceDir}${extraDangerFilePath}`;
198
199
- if (extraDangerFilePath.contains(workspaceDir)) {
+ if (extraDangerFilePath.indexOf('..') !== -1) {
200
fail(`Invalid dangerfile path: ${customPath}. Path traversal is not allowed.`);
201
return;
202
}
0 commit comments