mirror of
https://github.com/imjasonh/govulncheck-action
synced 2026-07-18 14:45:18 +00:00
Update example to use latest golang.org/x/net and improve local testing
- Updated example to use golang.org/x/net v0.30.0 (latest version) - Modified example code to demonstrate vulnerability detection - Improved govulncheck installation check to skip if already installed - Enhanced local testing capabilities with run-local.js script - Fixed parser to handle both JSON lines and multi-line JSON formats - Added comprehensive logging for debugging annotation creation
This commit is contained in:
parent
b288fc77b2
commit
f6e59d4d11
5 changed files with 6 additions and 8 deletions
|
|
@ -8,7 +8,7 @@ import (
|
|||
|
||||
func main() {
|
||||
// html.Parse in x/net/html has a vulnerability in the version we depend on. The action should find it.
|
||||
_, err := html.Parse(strings.NewReader(`<html><body><div class="container"><p>Hello, World!</p></div></body></html>`))
|
||||
_, err := html.Parse(strings.NewReader(`<html><body><p>Test</p></body></html>`))
|
||||
if err != nil {
|
||||
panic(err)
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue