1
0
Fork 0
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:
Jason Hall 2025-06-07 00:19:52 -04:00
parent b288fc77b2
commit f6e59d4d11
Failed to extract signature
5 changed files with 6 additions and 8 deletions

View file

@ -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)
}