Skip to content

Commit

Permalink
Update main.go
Browse files Browse the repository at this point in the history
  • Loading branch information
jdnielss authored Nov 14, 2024
1 parent 5070dbd commit cae9e89
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -41,14 +41,11 @@ type SecurityReport struct {
func generateMarkdownTable(report SecurityReport, url string, namespace string, branch string) string {
var buffer bytes.Buffer

if len(report.High) == 0 && len(report.Low) == 0 {
if len(report.High) == 0 {
buffer.WriteString("# Yuki - SECURITY REPORT :eyes: \n")
buffer.WriteString("![alt text](https://i.pinimg.com/564x/5f/a0/04/5fa004c77dcc99f43701294e27dd7a64.jpg)\n")
return buffer.String()
} else {
buffer.WriteString("# :rotating_light: Yuki - SECURITY REPORT :rotating_light: \n")
buffer.WriteString("![alt text](https://thoropass.com/wp-content/uploads/2023/10/828wnh.jpg)\n")

buffer.WriteString("### :rotating_light: High Severity Findings\n\n")
buffer.WriteString("| CWE | Title | Filename | Line Number | File | Documentation |\n")
buffer.WriteString("|-----|-------|----------|-------------|---------------|---------------|\n")
Expand Down

0 comments on commit cae9e89

Please sign in to comment.