-
Notifications
You must be signed in to change notification settings - Fork 361
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
tech story: [M3-8423] - Resolve "Incomplete string escape or encoding" in generate-ansibleConfig.test.ts #10887
Conversation
|
||
it('should safely escape extra backslash characters in YAML strings', () => { | ||
const config = { | ||
label: 'Linode with ] and also \\[, }, and \\{', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
note: Originally I'd had \]
and \}
in this label, but eslint corrected them to just ]
and {
π₯²... They still resulted in \\]
and \\}
, same as the current expected output (which is good/what we'd want, I think!).
Coverage Report: β
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks for linking the setup instructions. Verified the code scanning error is gone.
Edit: failing test seems unrelated -- retrying.
Description π
Target release date ποΈ
n/a
Preview π·
How to test π§ͺ
Prerequisites
Here are the steps I took to setup codeQL on vscode. Not sure if this is the most straightforward way, but it (seems to have) worked π
manager/src/utilities/codesnippets
package - I had trouble when trying to create a database with the entirety of managercodeql-repo
(naming conventions from the guide ^) in vscode, click on the QL tab in the sidebar, and select the database you just createdVerification steps
run the
IncompleteSanitization.ql
query and confirm warning is gone (codeql-repo >> javascript >> ql >> src >> Security >> CWE-116 >> IncompleteSanitization.ql)NOTE if you want to run this query on both develop (to see the warning) and this branch (to confirm it's gone), you will need to create DBs for both develop and this branch...the DB does not automatically update
As an Author I have considered π€
Check all that apply