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

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

Closed
ZainRizvi opened this issue Jul 19, 2022 · 1 comment
Labels
enhancement New feature or request

Comments

@ZainRizvi
Copy link

ZainRizvi commented Jul 19, 2022

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
@rhysd rhysd added the enhancement New feature or request label Aug 17, 2022
@rhysd
Copy link
Owner

rhysd commented Aug 17, 2022

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

@rhysd rhysd closed this as completed in 05888fd Sep 15, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants