Skip to content

Commit 22339ca

Browse files
committed
feat: exclude unreachable security contacts from packages API
Signed-off-by: Mouad BANI <mouad-mb@outlook.com>
1 parent 0228f92 commit 22339ca

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

services/libs/data-access-layer/src/osspckgs/sqlFragments.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ export const SECURITY_CONTACTS_SUBQUERY = `(
4040
FROM (
4141
SELECT channel, value, role, confidence, score
4242
FROM security_contacts
43-
WHERE repo_id = pr.repo_id AND deleted_at IS NULL
43+
WHERE repo_id = pr.repo_id AND deleted_at IS NULL AND reachable
4444
ORDER BY score DESC
4545
LIMIT 5
4646
) sc

0 commit comments

Comments
 (0)