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

feat(output): add HTML output format #1258

Merged
merged 23 commits into from
Oct 9, 2024
Merged
Show file tree
Hide file tree
Changes from 21 commits
Commits
Show all changes
23 commits
Select commit Hold shift + click to select a range
0bace98
feat(output): add HTML output format
hogo6002 Sep 18, 2024
0cede1e
Merge remote-tracking branch 'upstream/main' into html
hogo6002 Sep 18, 2024
f0deb86
change lib to html/template
hogo6002 Sep 18, 2024
6a78e53
only show on ID from one group
hogo6002 Sep 19, 2024
a083205
Add package summary tab
hogo6002 Sep 20, 2024
f6df334
Merge remote-tracking branch 'upstream/main' into html
hogo6002 Sep 24, 2024
a694df8
add severity count
hogo6002 Sep 24, 2024
ab2c3bb
fix lint
hogo6002 Sep 25, 2024
35ef23b
format style and handle ubuntu version
hogo6002 Sep 25, 2024
4e39c29
Merge remote-tracking branch 'upstream/main' into html
hogo6002 Oct 1, 2024
52a47b5
add HTMLVulnResultDetail and add UT
hogo6002 Oct 1, 2024
4cd3100
format html
hogo6002 Oct 1, 2024
4d3034b
sort ecosystem and source, fix UT
hogo6002 Oct 2, 2024
57de67e
update format
hogo6002 Oct 2, 2024
e930bdc
add windows replacement
hogo6002 Oct 2, 2024
50d4f82
update fix version display and hide html from help command
hogo6002 Oct 3, 2024
7c4cbd7
add more comments and format group Ids in template
hogo6002 Oct 3, 2024
eadb31c
add comment for /user/lib fitler
hogo6002 Oct 8, 2024
a489f16
Merge remote-tracking branch 'upstream/main' into html
hogo6002 Oct 9, 2024
1a4511e
rewrite some comment and clean up code
hogo6002 Oct 9, 2024
96600db
rewrite comment for processPackageResults
hogo6002 Oct 9, 2024
dc88064
replace if/else with cmp.Or
hogo6002 Oct 9, 2024
96505fb
allow lint check on css/js, and add newline for html
hogo6002 Oct 9, 2024
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .prettierignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
**/fixtures/**
**/fixtures-go/**
/docs/vendor/**
/internal/output/html/*
hogo6002 marked this conversation as resolved.
Show resolved Hide resolved
6 changes: 6 additions & 0 deletions cmd/osv-scanner/scan/main.go
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,12 @@ func Command(stdout, stderr io.Writer, r *reporter.Reporter) *cli.Command {
return nil
}

// Supporting html output format without showing it in the help command.
// TODO(gongh@): add html to reporter.Format()
if s == "html" {
return nil
}

return fmt.Errorf("unsupported output format \"%s\" - must be one of: %s", s, strings.Join(reporter.Format(), ", "))
},
},
Expand Down
Loading