arju-z/SafeDB-CI
Validates SQL migration files before production deploy. Runs ordering, safety analysis, execution, and structural schema integrity checks against an ephemeral database service container.
View on GitHubTrust Signals
- Scorecard Score
- not yet scored
- Maintenance Recency
- Stale
- License
- None
Inputs
| name | description | required | default |
|---|---|---|---|
| db_type | Target database engine: 'postgres' or 'mysql'. | yes | — |
| migrations_path | Relative path to the SQL migration files directory. | yes | ./migrations |
| strict_mode | When 'true', MEDIUM severity schema anomalies (missing PK, duplicate FK) are treated as hard failures (exit 1). Default: 'false' (warnings only). | no | false |
| postgres_user | PostgreSQL username. Must match the service container POSTGRES_USER. | no | "" |
| postgres_password | PostgreSQL password. Always pass via GitHub Secrets — never hardcode. | no | "" |
| postgres_db | PostgreSQL database name. | no | "" |
| mysql_user | MySQL username. Must match the service container MYSQL_USER. | no | "" |
| mysql_password | MySQL password. Always pass via GitHub Secrets — never hardcode. | no | "" |
| mysql_database | MySQL database name. Must match the service container MYSQL_DATABASE. | no | "" |
Outputs
no outputs