tech story: [M3-8423] - Resolve "Incomplete string escape or encoding" in generate-ansibleConfig.test.ts#10887
Merged
coliu-akamai merged 4 commits intolinode:developfrom Sep 10, 2024
Merged
Conversation
coliu-akamai
commented
Sep 4, 2024
|
|
||
| it('should safely escape extra backslash characters in YAML strings', () => { | ||
| const config = { | ||
| label: 'Linode with ] and also \\[, }, and \\{', |
Contributor
Author
There was a problem hiding this comment.
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: ✅ |
mjac0bs
approved these changes
Sep 6, 2024
hkhalil-akamai
approved these changes
Sep 9, 2024
This was referenced Sep 13, 2024
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


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/codesnippetspackage - 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.qlquery 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