Skip to content

Validate Composite Action Metadata Against the GitHub Action Schema in the Lint Set #3769

Closed

Description

@ptr727

Split from #1155 at the maintainer's direction (backlog-burndown run, 2026-11-01). This is item 4 of that issue's four. It was decided in #1155 (comment), and the decision text is quoted below.

4. Unlinted composite actions: add a schema check, because actionlint cannot be the tool. Measured on this tree rather than inferred: docker run --rm -v "$PWD":/repo -w /repo rhysd/actionlint:latest .github/actions/validate/action.yml exits 1 with "jobs" section is missing in workflow, so actionlint parses action metadata as a workflow and widening its globs is unavailable. Instead add a linter entry validating .github/actions/**/action.yml against the GitHub action-metadata schema, check-jsonschema's vendor.github-actions builtin, in scripts/docker_lint.py and in the CI step, and correct workflow-ci-contract "After Any Workflow Edit" to say what each check actually covers. That closes structure and key errors. It leaves a composite action's run: blocks and if: expressions still unchecked, which the corrected text has to say rather than imply.

Activity

  1. ptr727 commented on Nov 10, 2026

    @ptr727
    OwnerAuthor

    Closed as fixed (open-issue sweep, 2026-11-10).

    .github/workflows/validate-task.yml runs check-jsonschema over every composite action.yml and action.yaml under .github/actions/, and GOVERNANCE.md names the check in its lint set. It landed in d0e722f (#1686).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions