open-turo/Pre-commit
GitHub Action for running pre-commit hooks against the repository. Conditionally installs tools needed for the Action to be able to perform its duties such as `npm`, `pre-commit`, etc.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit Jul 9, 2026
- License
- MIT
Pinned Snippet
uses: open-turo/action-pre-commit@03f099db60e1386a5e8b3e6612057965acfdb11d # v3.6.1tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| config-file | The config file to present to commitlint-github-action | yes | .commitlintrc.yaml |
| disable-commitlint | Set this to "true" to disable commitlint entirely | no | false |
| turo-conventional-commit | Set this to "false" to customize conventional commit configuration | yes | true |
| only-changed | Set this to "true" to only run pre-commit against changed files, and not the entire repository | no | — |
| stage | Set this to run pre-commit against a specific stage of the pre-commit hooks. | no | — |
| s3-bucket-name | S3 bucket name to cache node_modules to speed up dependency installation. | no | — |
| s3-bucket-region | S3 bucket region to cache node_modules to speed up dependency installation. | no | — |
| github-token | Sets a GitHub token that allows pre-commit to fetch private repos | no | — |
Outputs
| name | description |
|---|---|
| cache-hit | Whether the cache was hit when installing dependencies |