[govulncheck-action] action.yml: add option to skip setting up go

1 view
Skip to first unread message

Gerrit Bot (Gerrit)

unread,
1:01 AM (22 hours ago) 1:01 AM
to goph...@pubsubhelper.golang.org, Arne Jørgensen, golang-co...@googlegroups.com

Gerrit Bot has uploaded the change for review

Commit message

action.yml: add option to skip setting up go

Allows you to setup go yourself.
Change-Id: Ifbda8a0d0a27a9aad53c62360b75558df870dc43
GitHub-Last-Rev: fea6e4b6f857c8a4abe3cfac398de89f26e14855
GitHub-Pull-Request: golang/govulncheck-action#12

Change diff

diff --git a/action.yml b/action.yml
index 6fe7e2c..b44d8b7 100644
--- a/action.yml
+++ b/action.yml
@@ -29,6 +29,10 @@
description: "Checkout the repository"
required: false
default: true
+ setup-go:
+ description: "Setup go"
+ required: false
+ default: true
go-version-file:
description: 'Path to the go.mod or go.work file.'
required: false
@@ -45,7 +49,8 @@
steps:
- if: inputs.repo-checkout != 'false' # only explicit false prevents repo checkout
uses: actions/checkout@de0fac2e4500dabe0009e67214ff5f5447ce83dd # v6.0.2
- - uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
+ - if: inputs.setup-go != 'false' # only explicit false prevents setting up go
+ uses: actions/setup-go@7a3fe6cf4cb3a834922a1244abfce67bcef6a0c5 # v6.2.0
with:
go-version: ${{ inputs.go-version-input }}
check-latest: ${{ inputs.check-latest }}

Change information

Files:
  • M action.yml
Change size: XS
Delta: 1 file changed, 6 insertions(+), 1 deletion(-)
Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
  • requirement is not satisfiedCode-Review
  • requirement satisfiedNo-Unresolved-Comments
  • requirement is not satisfiedReview-Enforcement
  • requirement is not satisfiedTryBots-Pass
Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
Gerrit-MessageType: newchange
Gerrit-Project: govulncheck-action
Gerrit-Branch: master
Gerrit-Change-Id: Ifbda8a0d0a27a9aad53c62360b75558df870dc43
Gerrit-Change-Number: 802000
Gerrit-PatchSet: 1
Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
Gerrit-CC: Arne Jørgensen <ar...@arnested.dk>
unsatisfied_requirement
satisfied_requirement
open
diffy

Gopher Robot (Gerrit)

unread,
1:01 AM (22 hours ago) 1:01 AM
to Arne Jørgensen, Gerrit Bot, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

Gopher Robot added 1 comment

Patchset-level comments
File-level comment, Patchset 1 (Latest):
Gopher Robot . unresolved

I spotted some possible problems with your PR:

  1. You usually need to reference a bug number for all but trivial or cosmetic fixes. For most repos outside the main go repo, the format is usually 'Fixes golang/go#12345' or 'Updates golang/go#12345' at the end of the commit message. Should you have a bug reference?

Please address any problems by updating the GitHub PR.

When complete, mark this comment as 'Done' and click the [blue 'Reply' button](https://go.dev/wiki/GerritBot#i-left-a-reply-to-a-comment-in-gerrit-but-no-one-but-me-can-see-it) above. These findings are based on heuristics; if a finding does not apply, briefly reply here saying so.

To update the commit title or commit message body shown here in Gerrit, you must edit the GitHub PR title and PR description (the first comment) in the GitHub web interface using the 'Edit' button or 'Edit' menu entry there. Note: pushing a new commit to the PR will not automatically update the commit message used by Gerrit.

For more details, see:

(In general for Gerrit code reviews, the change author is expected to [log in to Gerrit](https://go-review.googlesource.com/login/) with a Gmail or other Google account and then close out each piece of feedback by marking it as 'Done' if implemented as suggested or otherwise reply to each review comment. See the [Review](https://go.dev/doc/contribute#review) section of the Contributing Guide for details.)

Open in Gerrit

Related details

Attention set is empty
Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: govulncheck-action
    Gerrit-Branch: master
    Gerrit-Change-Id: Ifbda8a0d0a27a9aad53c62360b75558df870dc43
    Gerrit-Change-Number: 802000
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Arne Jørgensen <ar...@arnested.dk>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Comment-Date: Fri, 17 Jul 2026 05:01:24 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Gopher Robot (Gerrit)

    unread,
    1:05 AM (22 hours ago) 1:05 AM
    to Arne Jørgensen, Gerrit Bot, goph...@pubsubhelper.golang.org, golang-co...@googlegroups.com

    Message from Gopher Robot

    Congratulations on opening your first change. Thank you for your contribution!

    Next steps:
    A maintainer will review your change and provide feedback. See
    https://go.dev/doc/contribute#review for more info and tips to get your
    patch through code review.

    Most changes in the Go project go through a few rounds of revision. This can be
    surprising to people new to the project. The careful, iterative review process
    is our way of helping mentor contributors and ensuring that their contributions
    have a lasting impact.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: govulncheck-action
    Gerrit-Branch: master
    Gerrit-Change-Id: Ifbda8a0d0a27a9aad53c62360b75558df870dc43
    Gerrit-Change-Number: 802000
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Arne Jørgensen <ar...@arnested.dk>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-Comment-Date: Fri, 17 Jul 2026 05:05:28 +0000
    Gerrit-HasComments: No
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Hyang-Ah Hana Kim (Gerrit)

    unread,
    10:02 AM (13 hours ago) 10:02 AM
    to Arne Jørgensen, Gerrit Bot, goph...@pubsubhelper.golang.org, Hyang-Ah Hana Kim, Gopher Robot, golang-co...@googlegroups.com

    Hyang-Ah Hana Kim added 1 comment

    Patchset-level comments
    Hyang-Ah Hana Kim . resolved

    Out of curiosity - isn't it better to just run `go run golang.org/x/vuln/cmd/govulncheck@latest ./...` at that point?
    Why does user want to add this extra dependency layer? (internally, it calls `@latest` anyway so there is no version pinning, etc...)

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: govulncheck-action
    Gerrit-Branch: master
    Gerrit-Change-Id: Ifbda8a0d0a27a9aad53c62360b75558df870dc43
    Gerrit-Change-Number: 802000
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Arne Jørgensen <ar...@arnested.dk>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Comment-Date: Fri, 17 Jul 2026 14:02:09 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    unsatisfied_requirement
    open
    diffy

    Arne Jørgensen (Gerrit)

    unread,
    5:46 PM (5 hours ago) 5:46 PM
    to Gerrit Bot, goph...@pubsubhelper.golang.org, Hyang-Ah Hana Kim, Gopher Robot, golang-co...@googlegroups.com

    Arne Jørgensen added 1 comment

    Patchset-level comments
    Hyang-Ah Hana Kim . unresolved

    Out of curiosity - isn't it better to just run `go run golang.org/x/vuln/cmd/govulncheck@latest ./...` at that point?
    Why does user want to add this extra dependency layer? (internally, it calls `@latest` anyway so there is no version pinning, etc...)

    Arne Jørgensen

    That's a fair point.

    The action still provides some encapsulation of argument handling, etc. But you're right in questioning if it's worth the overhead, though.

    To answer a question from a GitHub question, "What is the use case ?":

    My own use case that I have my own setup of go which doesn't have the same delay as actions/setup-go in supporting new go releases. This leads to pull requests using a new go release, but failing govulncheck-action because it's based on actions/setup-go.

    Open in Gerrit

    Related details

    Attention set is empty
    Submit Requirements:
    • requirement is not satisfiedCode-Review
    • requirement is not satisfiedNo-Unresolved-Comments
    • requirement is not satisfiedReview-Enforcement
    • requirement is not satisfiedTryBots-Pass
    Inspect html for hidden footers to help with email filtering. To unsubscribe visit settings. DiffyGerrit
    Gerrit-MessageType: comment
    Gerrit-Project: govulncheck-action
    Gerrit-Branch: master
    Gerrit-Change-Id: Ifbda8a0d0a27a9aad53c62360b75558df870dc43
    Gerrit-Change-Number: 802000
    Gerrit-PatchSet: 1
    Gerrit-Owner: Gerrit Bot <letsus...@gmail.com>
    Gerrit-CC: Arne Jørgensen <ar...@arnested.dk>
    Gerrit-CC: Gopher Robot <go...@golang.org>
    Gerrit-CC: Hyang-Ah Hana Kim <hya...@gmail.com>
    Gerrit-Comment-Date: Fri, 17 Jul 2026 21:46:14 +0000
    Gerrit-HasComments: Yes
    Gerrit-Has-Labels: No
    Comment-In-Reply-To: Hyang-Ah Hana Kim <hya...@gmail.com>
    unsatisfied_requirement
    open
    diffy
    Reply all
    Reply to author
    Forward
    0 new messages