# Automatically run govulncheck on go {get,install,mod} like NPM

**URL:** <https://forum.golangbridge.org/t/automatically-run-govulncheck-on-go-get-install-mod-like-npm/37870>\
**Category:** Technical Discussion\
**Created:** [February 15, 2025, 7:08pm UTC](https://forum.golangbridge.org/t/automatically-run-govulncheck-on-go-get-install-mod-like-npm/37870 "2025-02-15T19:08:39Z")\
**Posts on this page:** 8\
**Page:** 1

<div class="post-metadata">

**Author:** ![mcandre](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/mcandre/32/3126_2.png) [@mcandre](https://forum.golangbridge.org/u/mcandre)\
**Post date:** [February 15, 2025, 7:08pm UTC](https://forum.golangbridge.org/t/automatically-run-govulncheck-on-go-get-install-mod-like-npm/37870/1 "2025-02-15T19:08:39Z")

</div>

Basic SCA is opt-in in Go, unlike NPM. This results in an ecosystem that is decades behind other programming languages.

Please trigger govulncheck by default when executing `go get`, `go install`, and `go mod` commands.

---

<div class="post-metadata">

**Author:** ![lemarkar](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/lemarkar/32/12652_2.png) [@lemarkar](https://forum.golangbridge.org/u/lemarkar)\
**Post date:** [February 15, 2025, 11:27pm UTC](https://forum.golangbridge.org/t/automatically-run-govulncheck-on-go-get-install-mod-like-npm/37870/2 "2025-02-15T23:27:37Z")

</div>

Excuse me, who should trigger those checks? If it’s about the tools, you can open a request in golang github.

Go ecosystem is way beyond most programming languages out there. But as the philosophy of the language stands, you have all the bricks to build what you want. There are lots of people who don’t need to trigger those checks, or any other available tool. And there is no necessity to add them into the standard process.

---

<div class="post-metadata">

**Author:** ![mcandre](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/mcandre/32/3126_2.png) [@mcandre](https://forum.golangbridge.org/u/mcandre)\
**Post date:** [February 15, 2025, 11:47pm UTC](https://forum.golangbridge.org/t/automatically-run-govulncheck-on-go-get-install-mod-like-npm/37870/3 "2025-02-15T23:47:55Z")

</div>

Downstream users of Go modules aren’t even aware of the vulnerabilities. That’s how bad the security posture is by default. For comparison, .NET even shows the CVE’s out of the box.

---

<div class="post-metadata">

**Author:** ![lemarkar](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/lemarkar/32/12652_2.png) [@lemarkar](https://forum.golangbridge.org/u/lemarkar)\
**Post date:** [February 16, 2025, 12:22pm UTC](https://forum.golangbridge.org/t/automatically-run-govulncheck-on-go-get-install-mod-like-npm/37870/4 "2025-02-16T12:22:08Z")

</div>

The ones who actually needs to be aware of vulnerabilities def know how to trigger `vulncheck`. And since you can literally read the go code from the package you are using, it’s possible to see what’s happening inside the 3d-parties with your own eyes.

---

<div class="post-metadata">

**Author:** ![mcandre](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/mcandre/32/3126_2.png) [@mcandre](https://forum.golangbridge.org/u/mcandre)\
**Post date:** [February 17, 2025, 3:32pm UTC](https://forum.golangbridge.org/t/automatically-run-govulncheck-on-go-get-install-mod-like-npm/37870/5 "2025-02-17T15:32:55Z")

</div>

Anyone using Go deserves to have these security reports happen automatically out of the box. Opt in hurts the ecosystem.

---

<div class="post-metadata">

**Author:** ![lemarkar](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/lemarkar/32/12652_2.png) [@lemarkar](https://forum.golangbridge.org/u/lemarkar)\
**Post date:** [February 17, 2025, 5:41pm UTC](https://forum.golangbridge.org/t/automatically-run-govulncheck-on-go-get-install-mod-like-npm/37870/6 "2025-02-17T17:41:04Z")

</div>

The eco-system is called the eco-system because you have lots of pieces working together. And you can decide what and where and how you want to do. Default behavior of the installation utils is to install 3d-party package so it can be used in the project, not to lint, scan or do whatever else. You can always write a script and create an alias for command line execution to run everything you want or need.

---

<div class="post-metadata">

**Author:** ![mcandre](https://forum.golangbridge.org/user_avatar/forum.golangbridge.org/mcandre/32/3126_2.png) [@mcandre](https://forum.golangbridge.org/u/mcandre)\
**Post date:** [February 18, 2025, 12:04am UTC](https://forum.golangbridge.org/t/automatically-run-govulncheck-on-go-get-install-mod-like-npm/37870/7 "2025-02-18T00:04:37Z")

</div>

I’m not asking go to refuse to launch insecure applications. Or compile insecure components. Or vendor insecure dependencies. Or cache insecure modules. Or exit non-zero.

I’m asking for the user to be made aware of latent vulnerabilities so that they will have good information. Then they can respond according to their needs.

---

<div class="post-metadata">

**Author:** ![system](https://forum.golangbridge.org/uploads/default/original/2X/5/5ad234f7c3dbc68b6cc72d338ce4f2973d9fd81c.png) [@system](https://forum.golangbridge.org/u/system)\
**Post date:** [May 19, 2025, 12:05am UTC](https://forum.golangbridge.org/t/automatically-run-govulncheck-on-go-get-install-mod-like-npm/37870/8 "2025-05-19T00:05:00Z")

</div>

Closed on May 19, 2025, 12:05am UTC

This topic was automatically closed 90 days after the last reply. New replies are no longer allowed.
