-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[WIP] refactor: ts #37
base: master
Are you sure you want to change the base?
Conversation
const port = process.env.PORT || 3000; | ||
|
||
const app = http.createServer((req, res) => { | ||
console.log(`Receive: ${req.url}`); |
Check failure
Code scanning / CodeQL
Log injection
const app = http.createServer((req, res) => { | ||
console.log(`Receive: ${req.url}`); | ||
|
||
if (req.url === '/exit') { |
Check failure
Code scanning / CodeQL
User-controlled bypass of security check
|
||
rl.question('What is your favorite food? ', (answer) => { | ||
console.log(`Oh, so your favorite food is ${answer}`); | ||
let i = 0; |
Check notice
Code scanning / CodeQL
Unused variable, import, function or class
this.proc = execa.node(this.cmd, this.args, this.opts); | ||
} else { | ||
const cmdString = [ this.cmd, ...this.args ].join(' '); | ||
this.proc = execa.command(cmdString, this.opts); |
Check warning
Code scanning / CodeQL
Shell command built from environment values
No description provided.