From b625fbe08f3bccbe446d94fbf87fcc875a4f50ee Mon Sep 17 00:00:00 2001 From: Zvonimir Pavlinovic Date: Fri, 27 Sep 2024 20:08:20 +0000 Subject: [PATCH] action.yml: make sure the latest Go version is default Due to some confusion on the contract of one of the dependencies, govulncheck-action would not by default try to download the newest go version when one was present. This would sometimes even break the action run due to a seemingly another issue with the dependency. This change should fix both issues. Fixes golang/go#69597 Change-Id: I51a21aad2daafc3984866051f91cf9339bb540e2 Reviewed-on: https://go-review.googlesource.com/c/govulncheck-action/+/616435 Reviewed-by: Maceo Thompson TryBot-Bypass: Zvonimir Pavlinovic Reviewed-by: Zvonimir Pavlinovic --- action.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/action.yml b/action.yml index 26be829..f7c11f6 100644 --- a/action.yml +++ b/action.yml @@ -1,13 +1,14 @@ name: 'golang-govulncheck-action' description: 'Run govulncheck' inputs: - go-version-input: # version of Go to use for govulncheck + go-version-input: # version of Go to use for govulncheck description: 'Version of Go to use for govulncheck' required: false + default: 'stable' check-latest: description: 'Set this option to true if you want the action to always check for the latest available Go version that satisfies the version spec' required: false - default: false + default: true cache: description: 'Used to specify whether Go caching is needed. Set to true, if you would like to enable caching.' required: false