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

1.6.20 - 'property "property_name" is not defined in object type {}' when input context used in "run-name" expression #223

Closed
krisrecur opened this issue Oct 4, 2022 · 3 comments
Labels
bug Something isn't working

Comments

@krisrecur
Copy link

krisrecur commented Oct 4, 2022

Steps to reproduce:

  1. Define an input variable on a workflow_dispatch type workflow
workflow_dispatch:
   inputs:
     property_name:
       description: test
       required: true
       type: string
  1. Attempt to reference the input variable in an expression to define run-name:
run-name: "${{ inputs.property_name }}"

actionlint 1.6.20 throws the following error:

property "property_name" is not defined in object type {} [expression]

The GitHub Actions documentation and example code specifies that the inputs context is supported in the run-name expression. https://docs.github.com/en/actions/using-workflows/workflow-syntax-for-github-actions

The workflow itself works as expected using the inputs context to define the run-name.

@krisrecur krisrecur changed the title 'property "property_name" is not defined in object type {}' when input context used in "run-name" expression 1.6.20 - 'property "property_name" is not defined in object type {}' when input context used in "run-name" expression Oct 4, 2022
@rhysd rhysd added the bug Something isn't working label Oct 4, 2022
@rhysd rhysd closed this as completed in 99222d6 Oct 4, 2022
@krisrecur
Copy link
Author

krisrecur commented Oct 6, 2022

@rhysd thanks for the quick response! Is there any ETA for an official release of actionlint that includes this fix? Thanks!

@rhysd
Copy link
Owner

rhysd commented Oct 6, 2022

I'm planning to make a new release at this weekend.

@rhysd
Copy link
Owner

rhysd commented Oct 9, 2022

Fix for this issue was shipped at v1.6.21.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants