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

Call out context that are used out of place #180

Closed
ZainRizvi opened this issue Jul 19, 2022 · 2 comments
Closed

Call out context that are used out of place #180

ZainRizvi opened this issue Jul 19, 2022 · 2 comments
Labels
enhancement New feature or request

Comments

@ZainRizvi
Copy link

ZainRizvi commented Jul 19, 2022

It would be great if actionlint could call out github contexts that are used in an invalid location, as per the contexts availability documentation

Example, running lint on the files below would cause an error only the github, needs, and inputs context are available at the jobs.<job_id>.with.<with_id> level, and not env

Example workflow contents that should fail but don't:

env:
  VARIABLE: value

jobs:
  parent-workflow:
    name: Do the build
    uses: ./.github/workflows/_reusable_workflow.yml
    with:
      variable: ${{ env.VARIABLE }}
@rhysd rhysd added the enhancement New feature or request label Aug 17, 2022
@rhysd
Copy link
Owner

rhysd commented Aug 17, 2022

Yes, it would be great. The context availability table was described recently. So actionlint does not consider it yet.

@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
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants