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

add github-sarif writer for github suited sarif output #907

Merged
merged 3 commits into from
Jul 13, 2021

Conversation

devang-gaur
Copy link
Contributor

No description provided.

@codecov
Copy link

codecov bot commented Jul 2, 2021

Codecov Report

Merging #907 (8071a46) into master (bedfaa1) will increase coverage by 0.03%.
The diff coverage is 82.35%.

Impacted file tree graph

@@            Coverage Diff             @@
##           master     #907      +/-   ##
==========================================
+ Coverage   79.03%   79.07%   +0.03%     
==========================================
  Files         211      212       +1     
  Lines        5119     5157      +38     
==========================================
+ Hits         4046     4078      +32     
- Misses        828      834       +6     
  Partials      245      245              
Impacted Files Coverage Δ
pkg/cli/register.go 4.54% <0.00%> (ø)
pkg/cli/run.go 88.88% <ø> (ø)
pkg/writer/sarif.go 84.61% <85.71%> (+1.63%) ⬆️
pkg/writer/github_sarif.go 100.00% <100.00%> (ø)
...providers/terraform/commons/variable-references.go 74.68% <0.00%> (-3.78%) ⬇️
...ac-providers/terraform/commons/local-references.go 70.73% <0.00%> (-1.15%) ⬇️
...c-providers/terraform/commons/lookup-references.go 76.00% <0.00%> (ø)
pkg/iac-providers/terraform/commons/references.go 85.96% <0.00%> (+2.29%) ⬆️
...c-providers/terraform/commons/module-references.go 47.50% <0.00%> (+7.50%) ⬆️

@devang-gaur devang-gaur changed the title add --github flag for github suited sarif output add github-sarif writer for github suited sarif output Jul 10, 2021
@sonarcloud
Copy link

sonarcloud bot commented Jul 10, 2021

Kudos, SonarCloud Quality Gate passed!

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

} else {
absFilePath, err := getAbsoluteFilePath(outputData.Summary.ResourcePath, violation.File)
if err != nil {
return errors.Errorf("unable to create absolute path, error: %v", err)
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it possible to use fmt.Errorf() here?

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

my bad. will correct this in future

@kanchwala-yusuf kanchwala-yusuf merged commit 8bba815 into tenable:master Jul 13, 2021
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