asdf-vm / asdf-vm/actions

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

Open
#566 1 comment 16 reactions 0 assignees View on GitHub
Dominant language
JavaScript
Stars
163
Forks
50
PR merge metrics
No merged PRs in 30d

Description

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

```yaml
[...]
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:
```bash
$ 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.

Contributor guide

Open the contributing guide

Research direction

Start by reading the behavior of asdf-vm/actions/install@v2 and how the action handles the .tool-versions file. Verify that the requested tools are selected, their versions come from .tool-versions, and unlisted tools are not installed; run the repository's existing action tests if available.

Written by the indexing model from the issue text.

Assessment

Tech stack
github-actions, javascript
Domain
ci-cd
Issue type
Feature
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.