pgguard / migrations · pull request #482
0005_add_user_email.sql 1 file, 2 statements
critical PG001 3:19 ADD COLUMN NOT NULL without a DEFAULT
│ ALTER TABLE users ADD COLUMN email text NOT NULL
high PG002 4:1 CREATE INDEX without CONCURRENTLY
│ CREATE INDEX idx_users_email ON users (email)
3 findings 1 critical 1 high 1 medium
✗ fail (findings at or above high)
The Action reads the migrations a pull request changes and needs no database connection. An account adds the history: which commit, which branch, and every finding the Action wrote into the review.