Skip to content
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

fix: update yaml parser to fix parsing [CC-1175] #2268

Merged
merged 1 commit into from
Sep 22, 2021

Conversation

teodora-sandu
Copy link
Contributor

What does this PR do?

This PR updates the version of @snyk/cloud-config-parser in order to fix a parsing inconsistency where \/ doesn't fail parsing in the YAML JavaScript parser.

How should this be manually tested?

I've tested this locally by importing a repo that has an IaC YAML file where one of they keys has a value like "\/"Test\/""

Any background context you want to provide?

This will hopefully reduce the number of error logs that cause this alert to hit us every day: https://snyk.slack.com/archives/C023NA9FQCU/p1632279068000600

What are the relevant tickets?

Screenshots

We can see a comparison of the before (snyk-dev) and after (snyk).
Screenshot 2021-09-22 at 09 11 49

Now, the fail correctly isn't considered valid YAML and the CLI scanning is consistent with the SCM import as per https://github.com/snyk/registry/pull/23716.

@teodora-sandu teodora-sandu merged commit c8b0215 into master Sep 22, 2021
@teodora-sandu teodora-sandu deleted the fix/update-yaml-parser branch September 22, 2021 08:04
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants