
Security News
npm ‘is’ Package Hijacked in Expanding Supply Chain Attack
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
sarif-junit
Advanced tools
This project aims to convert a SARIF output file from a linter to a JUnit XML output file.
It could be used inside GitLab to show which tests are failing in the CI/CD pipeline.
It was created to be used in the mega_linter
job hosted on r2devops.io.
# npm
npm install -g sarif-junit@latest
# yarn
yarn global add sarif-junit@latest
You can update latest tag by a specific version tag
You can use this tool in two ways:
sarif-junit --input <input-file> --output <output-file>
[--test-suite <test-suite>]
👉 You can also use the short version of the arguments -i
and -o
.
Here is an example of how to read a SARIF file and convert it to a CodeClimate file:
const saver = require('sarif-junit/lib/saver');
const fs = require('fs');
//Read the input file
let input_sarif_file = null
try {
input_sarif_file = fs.readFileSync("result.sarif", 'utf8');
} catch (e) {
console.log(e.message);
}
saver(input_sarif_file, "result.xml", "testSuite");
Are you missing something or want to contribute? Feel free to open an issue or create a pull request
MIT
GridexX, a french DevOps working for R2DevOps; with help of nvuillam
FAQs
Convert your SARIF output into a JUnit XML file
The npm package sarif-junit receives a total of 2,366 weekly downloads. As such, sarif-junit popularity was classified as popular.
We found that sarif-junit demonstrated a not healthy version release cadence and project activity because the last version was released a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?
Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.
Security News
The ongoing npm phishing campaign escalates as attackers hijack the popular 'is' package, embedding malware in multiple versions.
Security News
A critical flaw in the popular npm form-data package could allow HTTP parameter pollution, affecting millions of projects until patched versions are adopted.
Security News
Bun 1.2.19 introduces isolated installs for smoother monorepo workflows, along with performance boosts, new tooling, and key compatibility fixes.