nvuillam / node-sarif-builder

JS/TS library to easily build valid SARIF output from your javascript based SAST tools
MIT License
10 stars 2 forks source link

jar extensions should be mapped to java in languages.ts #71

Open jordancontrast opened 1 month ago

jordancontrast commented 1 month ago

The artifacts output generated will contain "sourceLanguage": "unknown" if the artifact uri has a jar extension. Currently, languages.ts only returns "sourceLanguage": "Java" is the extension is java. I propose that languages.ts should contain jar: 'Java',

nvuillam commented 1 week ago

I'm trying to remember where I found language.ts (I obviously not written it ^^ )

@jordancontrast as SARIF does not enforces a specific list (the property type is string), i'll validate your Pull Request if you add the update you are suggesting :)