ajitpratap0/GoSQLX Lint Action

Ultra-fast SQL validation, linting, and formatting for CI — 100x faster than SQLFluff, multi-dialect.

View on GitHub

Trust Signals

Scorecard Score
not yet scored
Maintenance Recency
Activelast commit May 27, 2026
License
Apache 2.0

Pinned Snippet

workflow.ymlSHA-pinned
uses: ajitpratap0/gosqlx@be25753025f5cf74c1ed40c2b7bb6fc16ca061f7 # v1.14.0

tags can be moved; commit SHAs can't. why a SHA?

namedescriptionrequireddefault
filesGlob pattern for SQL files to process (e.g., "**/*.sql", "queries/*.sql")yes**/*.sql
rulesComma-separated list of lint rule codes to enable (e.g., "L007,L006"). See docs/LINTING_RULES.md for the full list.no""
severitySeverity threshold for failure: error, warning, or infonowarning
validateEnable SQL validation (syntax checking)notrue
lintEnable SQL linting (best practices checking) - Advanced featurenofalse
format-checkCheck if SQL files are properly formatted (CI mode)nofalse
fail-on-errorFail the build when validation errors are foundnotrue
configPath to GoSQLX config file (.gosqlx.yml or .gosqlx.yaml)no""
dialectSQL dialect: postgresql, mysql, sqlserver, oracle, sqlite (default: auto-detect)no""
strictEnable strict validation mode (more rigorous checks)nofalse
show-statsDisplay performance statistics after validationnofalse
sarif-outputGenerate SARIF output for GitHub Code Scanning (requires security-events: write permission)nofalse
pr-commentPost validation results as a PR comment (only works on pull_request events)nofalse
pr-comment-compactUse compact format for PR comments (limits to 5 errors max)nofalse
gosqlx-versionGoSQLX version to use (default: latest)nolatest
timeoutTimeout in seconds for each file validation (default: 600)no600
working-directoryWorking directory for SQL file operationsno.
namedescription
validated-filesNumber of files validated
invalid-filesNumber of files with validation errors
formatted-filesNumber of files needing formatting (if format-check enabled)
validation-timeTotal validation time in milliseconds