diff --git a/dist/index.js b/dist/index.js index 2d1ea2f..962c2f5 100644 --- a/dist/index.js +++ b/dist/index.js @@ -24,8 +24,7 @@ async function run(dependencies = {}) { process.chdir(workingDirectory); } - // Install govulncheck - core.info('Installing govulncheck...'); + // Install govulncheck if necessary. await govulncheck.install(); // Run govulncheck with JSON output diff --git a/example/go.mod b/example/go.mod index 2ffdbca..1b5ab87 100644 --- a/example/go.mod +++ b/example/go.mod @@ -2,4 +2,4 @@ module github.com/imjasonh/govulncheck-action/example go 1.20 -require golang.org/x/net v0.0.0-20220906165146-f3363e06e74c +require golang.org/x/net v0.30.0 diff --git a/example/go.sum b/example/go.sum index bfadfc8..b338806 100644 --- a/example/go.sum +++ b/example/go.sum @@ -1,2 +1,2 @@ -golang.org/x/net v0.0.0-20220906165146-f3363e06e74c h1:yKufUcDwucU5urd+50/Opbt4AYpqthk7wHpHok8f1lo= -golang.org/x/net v0.0.0-20220906165146-f3363e06e74c/go.mod h1:YDH+HFinaLZZlnHAfSS6ZXJJ9M9t4Dl22yv3iI2vPwk= +golang.org/x/net v0.30.0 h1:AcW1SDZMkb8IpzCdQUaIq2sP4sZ4zw+55h6ynffypl4= +golang.org/x/net v0.30.0/go.mod h1:2wGyMJ5iFasEhkwi13ChkO/t1ECNC4X4eBKkVFyYFlU= diff --git a/example/main.go b/example/main.go index f166e01..de6ff96 100644 --- a/example/main.go +++ b/example/main.go @@ -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(`
Hello, World!
Test
`)) if err != nil { panic(err) } diff --git a/index.js b/index.js index c3004dd..cc709cf 100644 --- a/index.js +++ b/index.js @@ -18,8 +18,7 @@ async function run(dependencies = {}) { process.chdir(workingDirectory); } - // Install govulncheck - core.info('Installing govulncheck...'); + // Install govulncheck if necessary. await govulncheck.install(); // Run govulncheck with JSON output