Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Install with tools (only allowlisted tools, with versions from .tool-versions) #566

Open
MPV opened this issue Sep 29, 2023 · 1 comment

Comments

@MPV
Copy link

MPV commented Sep 29, 2023

What do we think about the idea of adding support for something like this:

[...]
steps:
  - uses: action/checkout@v4
  - uses: asdf-vm/actions/install@v2
    with:
      tools: |
        action-validator

...so if you have a .tool-versions file like this:

$ cat .tool-versions
action-validator 0.5.3
gcloud 1.2.3

...then it would only asdf install action-validator 0.5.3 (and not gcloud).

My hope is that this could simplify/speed up many jobs where you only need one particular tool for the thing you want to run.

@gvkhna
Copy link

gvkhna commented Jan 27, 2025

Here's a simple workaround:

      - name: Install asdf
        uses: asdf-vm/actions/setup@v3
      - name: Install asdf plugins
        uses: asdf-vm/actions/plugins-add@v3
      - name: Install asdf tools
        run: |
          asdf install nodejs
          asdf install python

Just list what you need installed manually like so

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

No branches or pull requests

2 participants