vscode-github-actions icon indicating copy to clipboard operation
vscode-github-actions copied to clipboard

Workflows using reusable workflows are reported as incorrect

Open whi-tw opened this issue 3 years ago • 2 comments

The following workflow:

---
name: Lint Code Base

on:
  push:
    branches-ignore:
      - main
  pull_request:
    branches:
      - main

jobs:
  lint:
    uses: ./.github/workflows/reusable-superlinter.yml

Shows some errors:

  • 'lint': Missing required key 'runs-on' and Missing required key 'steps'
  • 'uses': Key 'uses' is not allowed

These are both incorrect in this case: https://docs.github.com/en/actions/using-workflows/reusing-workflows

whi-tw avatar Jun 09 '22 10:06 whi-tw

This hit me as well. Do you have an idea for a fix?

jacobsvante avatar Aug 10 '22 09:08 jacobsvante

I hit the same error as well.

AnjaneyalnDatla avatar Aug 16 '22 13:08 AnjaneyalnDatla

Still present in v0.24.4.

AdamRaichu avatar Dec 13 '22 13:12 AdamRaichu

This should work now.

cschleiden avatar Mar 22 '23 16:03 cschleiden