actionlint icon indicating copy to clipboard operation
actionlint copied to clipboard

Actionlint doesn't notice when a call to a composite action or reusable workflow is missing inputs

Open ZainRizvi opened this issue 2 years ago • 1 comments

It would be great if it could call out when a composite action or a reusable workflow is being called without all the required inputs (Not sure if this is considered beyond the scope of actionlint)

Example, running lint on the files below would cause an error since the parent workflow doesn't pass a value for the required second-input input:

Workflow file:

jobs:
  parent-workflow:
    name: Do the build
    uses: ./.github/workflows/_reusable_workflow.yml
    with:
      first-input: some-value

./.github/workflows/_reusable_workflow.yml contents:

on:
  workflow_call:
    inputs:
      first-input:
        required: true
        type: string
        description: the first input
      second-input:
        required: true
        type: string
        description: the second input

ZainRizvi avatar Jul 19 '22 21:07 ZainRizvi

This is an enhancement which is not supported by actionlint yet though local actions are already supported.

rhysd avatar Aug 17 '22 10:08 rhysd