Skip to content

input "artifact-ids" is not defined in action "actions/download-artifact@v4" #537

Open
@waqaskayani

Description

@waqaskayani

actions/download-artifact@v4 does have an input field artifact-ids as per documentation, that allows to download artifacts based on their IDs. The linter does not recognize it and throws this error.

input "artifact-ids" is not defined in action "actions/download-artifact@v4". available inputs are "github-token", "merge-multiple", "name", "path", "pattern", "repository", "run-id" [action]

This needs to be added to allow:

      - uses: actions/download-artifact@v4
        with:
          artifact-ids: ${{ inputs.artifact-ids }}

https://github.com/rhysd/actionlint/blob/main/popular_actions.go#L486-L500
Suggestion:

	"actions/download-artifact@v4": {
		Name: "Download a Build Artifact",
		Inputs: ActionMetadataInputs{
			"artifact-ids":   {"artifact-ids", false},
			"github-token":   {"github-token", false},
			"merge-multiple": {"merge-multiple", false},
			"name":           {"name", false},
			"path":           {"path", false},
			"pattern":        {"pattern", false},
			"repository":     {"repository", false},
			"run-id":         {"run-id", false},
		},
		Outputs: ActionMetadataOutputs{
			"download-path": {"download-path"},
		},
	},

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions