Skip to content

Improvement: support composite actions #116

@MPV

Description

@MPV

Currently this action is hardcoded to only check workflow files:

const workflowsPath = process.env['ZG_WORKFLOWS_PATH'] || '.github/workflows';
const globber = await glob.create([workflowsPath + '/*.yaml', workflowsPath + '/*.yml'].join('\n'));

As "composite" actions can uses: other actions, it would be nice to be able to use this action on them too:

i.e. I'd like this to be caught by this action:

cat action.yml:

name: 'Hello World file creator action'
runs:
  using: "composite"
  steps:
    - uses: actions/checkout@v4 # <---
    - shell: bash
      run: echo "hello world" >> file.txt

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions