github-advanced-security[bot] commented on code in PR #1772: URL: https://github.com/apache/cordova-android/pull/1772#discussion_r1931767854
########## spec/unit/pluginHandlers/common.spec.js: ########## @@ -35,10 +35,16 @@ const deleteJava = common.__get__('deleteJava'); const copyNewFile = common.__get__('copyNewFile'); +function outputFileSync (file, content) { + const dir = path.dirname(file); + fs.mkdirSync(dir, { recursive: true }); + fs.writeFileSync(file, content, 'utf-8'); Review Comment: ## Insecure temporary file Insecure creation of file in [the os temp dir](1). Insecure creation of file in [the os temp dir](2). [Show more details](https://github.com/apache/cordova-android/security/code-scanning/112) -- This is an automated message from the Apache Git Service. To respond to the message, please log on to GitHub and use the URL above to go to the specific comment. To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For queries about this service, please contact Infrastructure at: us...@infra.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: issues-unsubscr...@cordova.apache.org For additional commands, e-mail: issues-h...@cordova.apache.org