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

[STAL-2617] Add Windows Support #480

Merged
merged 1 commit into from
Aug 5, 2024
Merged

[STAL-2617] Add Windows Support #480

merged 1 commit into from
Aug 5, 2024

Conversation

juli1
Copy link
Collaborator

@juli1 juli1 commented Aug 3, 2024

What problem are you trying to solve?

We want to make sure that when running on Windows, the SARIF files are correctly created and validated. Today, the path are using \ which breaks the file validation.

Example of file

Screenshot 2024-08-03 at 11 27 27 AM

Running datadog-ci against this file.

Screenshot 2024-08-03 at 11 37 17 AM

What is your solution?

In sarif_utils.rs, ensure that we convert the filenames to using slash. We are using the path_slash rust module for this.

Closes #476

Tested

Tested on a Windows machine.

Example of file after modifications

Screenshot 2024-08-03 at 11 27 35 AM

Running datadog-ci against this file.

Screenshot 2024-08-03 at 11 37 27 AM

@juli1 juli1 requested a review from jasonforal August 3, 2024 15:40
@juli1 juli1 requested a review from a team as a code owner August 3, 2024 15:40
@juli1 juli1 changed the title Add Windows Support [STAL-2617] Add Windows Support Aug 3, 2024
@juli1 juli1 merged commit c72ea06 into main Aug 5, 2024
64 checks passed
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.

Windows Support
2 participants