ajitpratap0/GoSQLX Lint Action
Ultra-fast SQL validation, linting, and formatting for CI — 100x faster than SQLFluff, multi-dialect.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Activelast commit May 27, 2026
- License
- Apache 2.0
Pinned Snippet
uses: ajitpratap0/gosqlx@be25753025f5cf74c1ed40c2b7bb6fc16ca061f7 # v1.14.0tags can be moved; commit SHAs can't. why a SHA?
Inputs
| name | description | required | default |
|---|---|---|---|
| files | Glob pattern for SQL files to process (e.g., "**/*.sql", "queries/*.sql") | yes | **/*.sql |
| rules | Comma-separated list of lint rule codes to enable (e.g., "L007,L006"). See docs/LINTING_RULES.md for the full list. | no | "" |
| severity | Severity threshold for failure: error, warning, or info | no | warning |
| validate | Enable SQL validation (syntax checking) | no | true |
| lint | Enable SQL linting (best practices checking) - Advanced feature | no | false |
| format-check | Check if SQL files are properly formatted (CI mode) | no | false |
| fail-on-error | Fail the build when validation errors are found | no | true |
| config | Path to GoSQLX config file (.gosqlx.yml or .gosqlx.yaml) | no | "" |
| dialect | SQL dialect: postgresql, mysql, sqlserver, oracle, sqlite (default: auto-detect) | no | "" |
| strict | Enable strict validation mode (more rigorous checks) | no | false |
| show-stats | Display performance statistics after validation | no | false |
| sarif-output | Generate SARIF output for GitHub Code Scanning (requires security-events: write permission) | no | false |
| pr-comment | Post validation results as a PR comment (only works on pull_request events) | no | false |
| pr-comment-compact | Use compact format for PR comments (limits to 5 errors max) | no | false |
| gosqlx-version | GoSQLX version to use (default: latest) | no | latest |
| timeout | Timeout in seconds for each file validation (default: 600) | no | 600 |
| working-directory | Working directory for SQL file operations | no | . |
Outputs
| name | description |
|---|---|
| validated-files | Number of files validated |
| invalid-files | Number of files with validation errors |
| formatted-files | Number of files needing formatting (if format-check enabled) |
| validation-time | Total validation time in milliseconds |