puneetmatharu/cmake-format lint action
A GitHub Action to format CMake-specific files using cmake-format (v0.6.13)
View on GitHubTrust Signals
- Scorecard Score
- Scorecard 2–4scored Jul 6, 2026
- Maintenance Recency
- Activelast commit Apr 1, 2026
- License
- MIT
Pinned Snippet
uses: puneetmatharu/cmake-format-lint-action@4ed77e1b4e9ae7b072e4e34c54461316771566c9 # v1.0.8tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| args | Arguments to supply to cmake-format. By default, this action checks formatting and fails the job with a diff when a file is not properly formatted. Pass --in-place to rewrite files instead. Options: -h, --help show this help message and exit -v, --version show program's version number and exit -l {error,warning,info,debug}, --log-level {error,warning,info,debug} --dump-config [{yaml,json,python}] If specified, print the default configuration to stdout and exit --dump {lex,parse,parsedb,layout,markup} --no-help When used with --dump-config, will omit helptext comments in the output --no-default When used with --dump-config, will omit any unmodified configuration value. -i, --in-place --check Exit with status code 0 if formatting would not change file contents, or status code 1 if it would -o OUTFILE_PATH, --outfile-path OUTFILE_PATH Where to write the formatted file. Default is stdout. -c CONFIG_FILES [CONFIG_FILES ...], --config-files CONFIG_FILES [CONFIG_FILES ...] path to configuration file(s) | no | "" |
| file-regex | Regex to select which files to apply cmake-format on. Defaults to '(.*\.cmake$|CMakeLists.txt$)' | no | (.*\.cmake$|CMakeLists.txt$) |
Outputs
no outputs