Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

node-sarif-builder

Package Overview
Dependencies
Maintainers
1
Versions
138
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

node-sarif-builder - npm Package Compare versions

Comparing version 0.1.2-alpha202201102305.0 to 0.1.2-alpha202201102313.0

22

.cspell.json

@@ -16,8 +16,23 @@ {

"BETAID",
"Builer",
"Guids",
"JSONLINT",
"MARKDOWNLINT",
"Multiformat",
"Nooo",
"SARIF",
"SAST",
"Sarif",
"checkov",
"checkstyle",
"codecov",
"codeql",
"devskim",
"gitleaks",
"hadolint",
"identifer",
"ktlint",
"lcov",
"MARKDOWNLINT",
"multiformat",
"myfile",
"npmrc",

@@ -28,3 +43,8 @@ "nvuillam",

"sarif",
"semgrep",
"stefanzweifel",
"terrascan",
"terrasform",
"tflint",
"trivy",
"typedoc",

@@ -31,0 +51,0 @@ "venv",

2

package.json
{
"name": "node-sarif-builder",
"version": "0.1.2-alpha202201102305.0",
"version": "0.1.2-alpha202201102313.0",
"description": "Module to help building SARIF log files",

@@ -5,0 +5,0 @@ "main": "dist/index.js",

@@ -53,2 +53,6 @@ # node-sarif-builder

With node-sarif-builder, you can generate complex SARIF format with simple methods
___
- Start by importing module

@@ -60,2 +64,4 @@

____
- Create and init **SarifBuilder** and **SarifRunBuilder** objects

@@ -73,2 +79,4 @@

____
- Add all rules that can be found in your results (recommended but optional)

@@ -78,3 +86,3 @@

// Add SARIF rules
for (const rule of rules) {
for (const rule of rules) { // rules from your linter in any format
const sarifRuleBuiler = new SarifRuleBuilder().initSimple({

@@ -89,2 +97,4 @@ ruleId: rule.id, // ex: "no-any"

____
- For each found issue, create a SarifResultBuilder and add it to the SarifRunBuilder object

@@ -94,3 +104,3 @@

// Add results
for (const issue of issues) {
for (const issue of issues) { // issues from your linter in any format
const sarifResultBuilder = new SarifResultBuilder();

@@ -128,2 +138,4 @@ const sarifResultInit = {

____
- Add run to sarifBuilder then generate JSON SARIF output file

@@ -130,0 +142,0 @@

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc