Files
codeql/python/ql/test/query-tests/Security/CWE-089-SqlInjection-local-threat-model/test.py
2026-06-19 12:22:40 +01:00

7 lines
148 B
Python

# test that enabling local threat-model works end-to-end
import sys
import psycopg
conn = psycopg.connect(...)
conn.execute(sys.argv[1]) # $ Alert