Skip to content

fix(cfn-guard): canonicalize creates invalid json [DO NOT MERGE / REVIEW RUNNING AGAINST CI] #540

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

Closed

Conversation

dannyvassallo
Copy link
Contributor

Issue #, if available: 536

The issue appears to be with paths. I encountered something similar in the TS lib but massaged the data in there as I assumed it was an issue with those changes and not guard itself.

Description of changes:

Use an OSString instead of a canonicalized PathBuf converted to a string. It generated invalid characters for JSON and SARIF.

rust-lang/rust#81045 (comment)

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache-2.0 license

@joshfried-aws
Copy link
Contributor

Should we update the massaging in the TS lib once we change this?

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.

2 participants