Skip to content

Add actionlint with pre-commit: a static checker for GitHub Actions workflow files #32

@jbampton

Description

@jbampton

actionlint is a static checker for GitHub Actions workflow files

Check out the actionlint playground:

https://rhysd.github.io/actionlint/

https://github.com/rhysd/actionlint/blob/v1.7.7/docs/usage.md#pre-commit

repos:
  - repo: https://github.com/rhysd/actionlint
    rev: v1.7.7
    hooks:
      - id: actionlint

So the hook will need to be added to the pre-commit config and then all the actionlint lint errors will need fixing

The next document describes all checks done by actionlint with example inputs, outputs, and playground links:

https://github.com/rhysd/actionlint/blob/v1.7.7/docs/checks.md

Comes with a config file that you can customize:

https://github.com/rhysd/actionlint/blob/v1.7.7/docs/config.md

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