1
0
Fork 0
mirror of https://github.com/imjasonh/govulncheck-action synced 2026-07-07 00:12:55 +00:00
govulncheck-action/example/main.go

16 lines
300 B
Go
Raw Normal View History

package main
import (
"strings"
"golang.org/x/net/html"
)
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><p>hello</p></body></html>`))
if err != nil {
panic(err)
}
}