14 Commits
Author SHA1 Message Date
David GameroandGitHub 4339b0e932 feat: verify Helm downloads and support fallback mirrors (#315)
* feat: verify Helm downloads and support fallback mirrors

* fix: strengthen Helm download fallback

* docs: align mirror example with Helm fallback

* fix: preserve custom mirror checksum compatibility

* fix: warn for missing checksums in auto mode
2026-11-09 12:18:18 -08:00
Thomas Seljen TvedtandGitHub 531fb92ec6 fix: retry latest version lookup and add latest-fallback opt-out (#303)
* fix: retry latest version lookup and add latest-fallback opt-out

Resolving 'version: latest' made a single request to
https://get.helm.sh/helm-latest-version and, on any failure, silently
installed the hard-coded default version. Since 'latest' resolves to
Helm 4, that fallback moves a job back a whole major version while the
step stays green.

Retry the lookup a few times with a short backoff, treat non-2xx
responses as failures instead of installing the response body, and add
a 'latest-fallback' input so callers can make the step fail instead of
installing the default version. The default keeps the existing
behavior.

* fix: do not fall back across a major version by default

Make 'latest-fallback' default to 'false', so an exhausted lookup fails
the step with the underlying error instead of installing the built-in
default version, which can be a major behind what 'latest' resolves to.
Setting the input to 'true' restores the previous behavior.

* fix: keep latest-fallback on by default

Installing the built-in default version when 'latest' cannot be
determined is documented behavior for v5, so 'latest-fallback' now
defaults to 'true' and callers opt out with 'false'. The warning
emitted on fallback names the input, so the downgrade is easy to trace
and to turn off.

* fix: cancel the unread body of a failed latest version response

A non-2xx response from the latest version URL is turned into an error
without reading its body. Cancel the body first, so its connection is
released before the next attempt instead of waiting for garbage
collection.
2026-11-04 10:50:29 -08:00
somazandGitHub 017211e1b1 Add version-file input to read the Helm version from a .tool-versions file (#281)
* feat: add version-file input to read helm version from .tool-versions

* feat: validate semver shape of helm version from .tool-versions
2026-06-23 13:07:39 -07:00
David GameroandGitHub ca66f3880d Update Node.js runtime from node20 to node24 (#259) 2026-03-16 13:49:08 +13:00
elProxyandGitHub ec8dd7c209 switching to fetching latest version from the dedicated file (#130) 2024-03-01 10:15:56 -06:00
Dmytro BondarandGitHub 208de6bd49 Upgrade action to use node20 (#121)
* Action update:

- Bump all dependencies
- Rewrite `getLatestHelmVersion()` function without graphql

* Bump stableHelmVersion

* Update readme and action.yaml

* Revert and rewrite with @octokit/action

* Add latest to integration test

* Bump action's versions

* Set github.token as default input

* Replace deprecated jest methods

* Add prettier to dev dependencies, fix prettier issues
2024-02-08 13:49:56 -05:00
d336b89352 Add action input to set download base url (#113)
* feat: add downloadBaseURL action input

* feat: downloadHelm and getHelmDownloadURL added baseURL function argument

* refactor: building the helm download url

* chore: format code

---------

Co-authored-by: Paul Vollmer <mail@paulvollmer.net>
2024-01-02 09:30:48 -05:00
Oliver KingandGitHub 17cd77473c fix auth (#86) 2022-07-25 13:13:50 -04:00
7f0153c54c Vidya reddy prettier (#75)
* upgraded to Node16

* Enforce Prettier

* code fix

* Update package-lock.json

resolved the conflicts.

* executed prettier

Co-authored-by: Vidya Reddy <vidyareddy@microsoft.com>
2022-06-27 18:27:44 -04:00
97c3a3f138 upgraded to Node16 (#74)
Co-authored-by: Vidya Reddy <vidyareddy@microsoft.com>
2022-06-16 15:17:55 -04:00
David GameroandGitHub fa870ea9a2 run to index (#67)
* run to index

* action.yaml route

* move to dev dep
2022-02-09 11:26:07 -05:00
Asa GayleandGitHub da63a48ad7 Cleanup action for release (#56)
* Removed empty try catch

* Initial commit

* Compiled to js

* Escape slash for nodejs

* Updating getStableHelmVersion test

* Removing old versions of run

* Added comment on getLatestHelmVersion and variable for helm release url to command

* Pushing recent changes before computer reset

* Latest getLatestHelmVersion iteration

* Removed test

* Testing async test

* getLatestHelmVersion refactor

* fixed method to access helm releses JSON

* Edited comment on isValidVersion

* Removed old integration tests

* Small temp test

* Removed IntegrationTests path

* Updated package-lock.json and removed unused dep

* Integration testing

* Fixed if statement in run command

* Added exit

* Double brackets for new test

* Added version confirmation output and different check for version

* Helm 3.7.2 test

* added env to workflow paths

* adjusted env in workflow paths

* 3.5.0 tests

* Requested changes

* Fixed downloadHelm test

* Clean up for release

* Updated CODEOWNERS

* Updated CODEOWNERS
2022-01-26 16:35:07 -05:00
shigupt202andGitHub edc063ca5f adding graph ql for Helm versions - master (#22)
* Adding graphql to find out latest helm version of specified type

* Updating package-loc.json

* Updating js file

* Fixing PR comments

* Adding feature flag as environment variable

* Changing feature flag name

* Updating package-loc.json
2021-03-30 22:43:44 +05:30
Anumita Shenoy 8552a6edfe Added setup-helm : Install helm binary 2019-10-04 12:16:40 +05:30