mirror of
https://github.com/github/codeql.git
synced 2026-02-19 08:23:45 +01:00
fix example in clear-text-logging qhelp to actually be bad
This commit is contained in:
@@ -1,2 +1,2 @@
|
||||
// BAD: Logging cleartext sensitive data
|
||||
console.info(`[INFO] Environment: ${process.env}`);
|
||||
console.info(`[INFO] Environment: ${JSON.stringify(process.env)}`);
|
||||
|
||||
@@ -1,3 +1,3 @@
|
||||
let not_sensitive_data = { a: 1, b : 2}
|
||||
// GOOD: it is fine to log data that is not sensitive
|
||||
console.info(`[INFO] Some object contains: ${not_sensitive_data}`);
|
||||
console.info(`[INFO] Some object contains: ${JSON.stringify(not_sensitive_data)}`);
|
||||
Reference in New Issue
Block a user