Skip to content

Fix CI after the pwa.pit.world sweep (own-host check in reddit sync) - #104

Merged
ralyodio merged 1 commit into
masterfrom
fix/pwa-sweep-tests
Nov 8, 2026
Merged

ralyodio merged 1 commit into
masterfrom
fix/pwa-sweep-tests

Conversation

@ralyodio

@ralyodio ralyodio commented Nov 8, 2026

Copy link
Copy Markdown
Contributor

Master CI has been red since #103.

Runtime fix: apps/web/lib/reddit-sync.ts declined posts that link back to us only when the host was c0upons.com (a regex-escaped form the sweep deliberately left alone). Now that the app lives on c0upons.pwa.pit.world, our own coupons reposted to r/couponcodes would come back in as new listings with store pit.world. The check now matches the pwa host and the retired c0upons.com.

Tests: CLI upgrade URL (test/versions.test.mjs) and bbs thread links (test/bbs-post.test.mjs) now assert the pwa host.

Local: bun run typecheck && bun run test green (91 pass).

🤖 Generated with Claude Code

…he move

The domain sweep (#103) moved the reddit-sync fixture to
c0upons.pwa.pit.world, but the own-site check still only matched
c0upons.com, so our own coupons reposted to r/couponcodes would be
re-imported as new listings (with store 'pit.world'). The check now
matches both the pwa host and the retired c0upons.com.

Test expectations for the CLI upgrade URL and bbs thread links now
assert the pwa host.

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 8, 2026

Copy link
Copy Markdown

ThreatCrush Security Scan

40 finding(s)

MEDIUM: 33 | LOW: 7

Severity Rule Location
MEDIUM sql-template-interpolation apps/web/app/api/bounties/[id]/claim/route.ts:18
MEDIUM sql-template-interpolation apps/web/app/api/bounties/[id]/claim/route.ts:34
MEDIUM sql-template-interpolation apps/web/app/api/bounties/[id]/claim/route.ts:43
MEDIUM sql-template-interpolation apps/web/app/api/bounties/route.ts:95
MEDIUM sql-template-interpolation apps/web/app/api/coupons/route.ts:68
MEDIUM sql-template-interpolation apps/web/app/api/coupons/route.ts:75
MEDIUM sql-template-interpolation apps/web/app/api/coupons/vote/route.ts:31
MEDIUM sql-template-interpolation apps/web/app/api/coupons/vote/route.ts:33
MEDIUM sql-template-interpolation apps/web/app/api/stores/[slug]/route.ts:9
MEDIUM sql-template-interpolation apps/web/app/api/webhooks/crawlproof/route.ts:83
MEDIUM sql-template-interpolation apps/web/app/api/webhooks/crawlproof/route.ts:90
MEDIUM js-open-redirect apps/web/app/bounties/new/page.tsx:61
MEDIUM js-unescaped-html-sink apps/web/app/coupons/[id]/page.tsx:57
MEDIUM js-unescaped-html-sink apps/web/app/layout.tsx:88
MEDIUM sql-template-interpolation apps/web/app/stores/[slug]/page.tsx:16
MEDIUM sql-template-interpolation apps/web/lib/bbs-post.ts:164
MEDIUM sql-template-interpolation apps/web/lib/flipp-sync.ts:445
MEDIUM sql-template-interpolation apps/web/lib/inbound-email.ts:573
MEDIUM sql-template-interpolation apps/web/lib/inbound-email.ts:643
MEDIUM sql-template-interpolation apps/web/lib/mcp-tools.ts:81
MEDIUM sql-template-interpolation apps/web/lib/members.ts:54
MEDIUM sql-template-interpolation apps/web/lib/nichedb-sync.ts:186
MEDIUM sql-template-interpolation apps/web/lib/nichedb-sync.ts:206
MEDIUM sql-template-interpolation apps/web/lib/peerpush-sync.ts:338
MEDIUM sql-template-interpolation apps/web/lib/peerpush-sync.ts:353
MEDIUM sql-template-interpolation apps/web/lib/reddit-sync.ts:343
MEDIUM sql-template-interpolation apps/web/lib/reddit-sync.ts:362
MEDIUM sql-template-interpolation apps/web/lib/reddit-sync.ts:368
MEDIUM sql-template-interpolation apps/web/lib/reveal-coupon.ts:115
MEDIUM sql-template-interpolation apps/web/lib/reveal-coupon.ts:170
MEDIUM sh-predictable-temp-path apps/web/public/install.sh:37
MEDIUM sh-predictable-temp-path apps/web/public/install.sh:39
MEDIUM sql-template-interpolation apps/web/scripts/migrate.mjs:192
LOW sql-template-interpolation test/bbs-post.test.mjs:129
LOW sql-template-interpolation test/bbs-post.test.mjs:143
LOW sql-template-interpolation test/bbs-post.test.mjs:164
LOW sql-template-interpolation test/inbound-email.test.mjs:139
LOW sql-template-interpolation test/peerpush-sync.test.mjs:183
LOW sql-template-interpolation test/reveal-sweep.test.mjs:69
LOW sql-template-interpolation test/reveal-sweep.test.mjs:112

Snippets are redacted; ThreatCrush never prints matched credential material.

@ralyodio
ralyodio merged commit 2e51992 into master Nov 8, 2026
5 checks passed
@ralyodio
ralyodio deleted the fix/pwa-sweep-tests branch November 8, 2026 16:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant