Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
remove low security report
  • Loading branch information
jdnielss authored Oct 2, 2024
1 parent bb7f87c commit 5070dbd
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -61,19 +61,6 @@ func generateMarkdownTable(report SecurityReport, url string, namespace string,
finding.CweIDs[0], finding.Title, finding.Filename, finding.LineNumber, finding.Filename, fullLink, finding.DocumentationURL))
}

// Low severity findings
buffer.WriteString("\n### :warning: Low Severity Findings\n\n")
buffer.WriteString("| CWE | Title | Filename | Line Number | File | Documentation |\n")
buffer.WriteString("|-----|-------|----------|-------------|---------------|---------------|\n")
for _, finding := range report.Low {
// Concatenate URL, namespace, and the filename
fullLink := fmt.Sprintf("%s/%s/-/blob/%s/%s#L%d-L%d", url, namespace, branch, finding.Filename, finding.Sources.Start, finding.Sources.End)

// Use the fullLink in the markdown formatting
buffer.WriteString(fmt.Sprintf("| %s | %s | %s | %d | [%s](%s) | [Documentation](%s) |\n",
finding.CweIDs[0], finding.Title, finding.Filename, finding.LineNumber, finding.Filename, fullLink, finding.DocumentationURL))
}

return buffer.String()
}
}
Expand Down

0 comments on commit 5070dbd

Please sign in to comment.