Skip to content

ci(deploy-dev2): build the threatcrush.com image on GitHub; dev2 only pulls it - #492

Merged
ralyodio merged 1 commit into
masterfrom
ci/prebuilt-ghcr-image
Nov 23, 2026
Merged

ralyodio merged 1 commit into
masterfrom
ci/prebuilt-ghcr-image

Conversation

@ralyodio

Copy link
Copy Markdown
Contributor

The deploy workflow now builds the Dockerfile on the Actions runner and pushes
ghcr.io/profullstack/threatcrush-web:. dev2's deploy-app.sh (IMAGE_REPO mode,
cli-tools #275) pulls that tag with the job's short-lived GITHUB_TOKEN sent on ssh
stdin and runs compose up --no-build. No next build or pnpm install on dev2.

  • no build args (the Dockerfile declares none), .env* added to .dockerignore
  • dispatch refs are checked (commit id or vX.Y.Z) before they reach the box
  • smoke test: revision label, standalone server and public/install.sh present
  • separate package from the tag-published self-host image ghcr.io/profullstack/threatcrush

Verification plan: a build-only dispatch (deploy=false) on this branch first, then dev2's site dir is switched to IMAGE_REPO mode (backups *.bak-20261123-prebuilt), then this merges and the push deploy is watched with a 2 s process sampler on dev2 (zero build processes), site 200 and the running image's revision label = merge sha. Depends on profullstack/cli-tools#275 (merged).

🤖 Generated with Claude Code

… pulls it

The deploy workflow now builds the Dockerfile on the Actions runner and pushes
ghcr.io/profullstack/threatcrush-web:<sha>. dev2's deploy-app.sh (IMAGE_REPO mode,
cli-tools #275) pulls that tag with the job's short-lived GITHUB_TOKEN sent on ssh
stdin and runs compose up --no-build. No next build or pnpm install on dev2.

- no build args (the Dockerfile declares none), .env* added to .dockerignore
- dispatch refs are checked (commit id or vX.Y.Z) before they reach the box
- smoke test: revision label, standalone server and public/install.sh present
- separate package from the tag-published self-host image ghcr.io/profullstack/threatcrush

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

Copy link
Copy Markdown

ThreatCrush Security Scan

Local report — repository account settings and team paging are not connected for this run.

CRITICAL: 1 | Warnings: 36 | Silenced warnings: 0

Critical findings remain visible regardless of warning silences. Connect this repository to enable team incident paging.

Level Detected severity Rule Location
CRITICAL CRITICAL secret-aws-access-key prd/0003-detect-hardcoded-secrets-before-they-are-committed-or-served.md:126
WARNING MEDIUM gha-ssh-key-secret .github/workflows/deploy-dev2.yml:165
WARNING MEDIUM gha-ssh-key-secret .github/workflows/migrate-dev2.yml:63
WARNING MEDIUM sql-string-concatenation .github/workflows/migrate-dev2.yml:128
WARNING MEDIUM gha-input-in-remote-shell .github/workflows/migrate-dev2.yml:130
WARNING MEDIUM gha-input-in-remote-shell .github/workflows/migrate-dev2.yml:134
WARNING MEDIUM gha-input-in-remote-shell .github/workflows/migrate-dev2.yml:158
WARNING MEDIUM js-uninitialized-buffer apps/cli/src/core/log-tail.ts:58
WARNING MEDIUM js-open-redirect apps/web/src/app/account/coinpay-card.tsx:44
WARNING MEDIUM js-open-redirect apps/web/src/app/auth/login/page.tsx:73
WARNING MEDIUM js-unescaped-html-sink apps/web/src/app/hire/page.tsx:110
WARNING MEDIUM js-unescaped-html-sink apps/web/src/app/hire/page.tsx:114
WARNING MEDIUM js-open-redirect apps/web/src/app/invite/[token]/invite-client.tsx:55
WARNING MEDIUM js-open-redirect apps/web/src/components/CheckoutPanel.tsx:99
WARNING MEDIUM js-open-redirect apps/web/src/components/funding/FundingClient.tsx:97
WARNING MEDIUM js-unescaped-html-sink apps/web/src/components/GuideReader.tsx:265
WARNING MEDIUM js-unescaped-html-sink apps/web/src/components/PitFooter.tsx:17
WARNING MEDIUM js-unescaped-html-sink apps/web/src/components/ProductWatchBadge.tsx:8
WARNING MEDIUM js-regex-from-input apps/web/src/lib/credit-codes.ts:569
WARNING MEDIUM js-open-redirect apps/web/src/lib/navigate.ts:3
WARNING MEDIUM js-uninitialized-buffer packages/av/src/node/scan-file.ts:30
WARNING MEDIUM js-uninitialized-buffer packages/av/src/node/scan-file.ts:51
WARNING MEDIUM js-uninitialized-buffer packages/av/src/node/scan-file.ts:62
WARNING MEDIUM redos-nested-quantifier packages/av/src/rules.ts:381
WARNING MEDIUM redos-nested-quantifier packages/av/src/rules.ts:477
WARNING MEDIUM js-uninitialized-buffer packages/scan/src/node-rules.ts:456
WARNING MEDIUM redos-nested-quantifier packages/scan/src/workflow-rules.ts:456
WARNING LOW secret-generic-credential apps/cli/src/daemon/workers/auto-update.ts:155
WARNING LOW secret-generic-credential apps/web/src/app/api/auth/refresh/route.ts:17
WARNING LOW secret-generic-credential apps/web/src/app/api/auth/reset-password/route.ts:26
WARNING LOW secret-generic-credential apps/web/src/app/api/auth/reset-password/route.ts:27
WARNING LOW secret-generic-credential PRD.md:269
WARNING LOW tls-verification-disabled prd/0004-find-dangerous-code-patterns-without-pretending-to-be-a-compiler.md:121
WARNING LOW tls-verification-disabled prd/0004-find-dangerous-code-patterns-without-pretending-to-be-a-compiler.md:122
WARNING (test/example) LOW sh-remote-script-execution scripts/smoke-test.sh:72
WARNING (test/example) LOW secret-aws-access-key scripts/smoke-test.sh:150
WARNING (test/example) LOW secret-private-key scripts/test_github_repository_report.py:65

Manage repository warnings and critical paging.

Source snippets and credential material are never sent to the account service or printed in this report.

@ralyodio
ralyodio merged commit 6e99f95 into master Nov 23, 2026
@ralyodio
ralyodio deleted the ci/prebuilt-ghcr-image branch November 23, 2026 00:27
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