Skip to content

feat: Improve portability by removing an unnecessary dependency on gh#31

Merged
MarcelBochtler merged 1 commit intomainfrom
gh-curl
Feb 13, 2026
Merged

feat: Improve portability by removing an unnecessary dependency on gh#31
MarcelBochtler merged 1 commit intomainfrom
gh-curl

Conversation

@MarcelBochtler
Copy link
Member

While gh is available on GitHub.com hosted runners, it might not be available on self-hosted runners.
As the usage of gh is neither necessary to determine the latest release version, nor is it required to download the release assets, replace it with a combination of curl, grep and sed to achieve the same result.
Additionally the documented use-case to use the action without authentication by setting the github-token to an empty string, does not work with gh, because gh cannot be used without authentication in a GitHub action 1.

While `gh` is available on GitHub.com hosted runners, it might not be
available on self-hosted runners.
As the usage of `gh` is neither necessary to determine the latest
release version, nor is it required to download the release assets,
replace it with a combination of `curl`, `grep` and `sed` to achieve the
same result.
Additionally the documented use-case to use the action without
authentication by setting the `github-token` to an empty string, does
not work with `gh`, because `gh` cannot be used without authentication
in a GitHub action [1].

[1]: https://docs.github.com/en/actions/how-tos/write-workflows/choose-what-workflows-do/use-github-cli

Signed-off-by: Marcel Bochtler <marcel.bochtler@bosch.com>
@MarcelBochtler MarcelBochtler merged commit 1bcebc3 into main Feb 13, 2026
7 checks passed
@MarcelBochtler MarcelBochtler deleted the gh-curl branch February 13, 2026 13:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants