actionlint icon indicating copy to clipboard operation
actionlint copied to clipboard

Call out context that are used out of place

Open ZainRizvi opened this issue 2 years ago • 1 comments

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 }}

ZainRizvi avatar Jul 19 '22 21:07 ZainRizvi

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

rhysd avatar Aug 17 '22 10:08 rhysd

Fix for this issue was shipped at v1.6.21.

rhysd avatar Oct 09 '22 15:10 rhysd