Repository navigation
feat: secure deployments and dependency workflows - #811
Merged
amina69 merged 2 commits intoOct 22, 2026
Merged
Conversation
|
Someone is attempting to deploy a commit to the sheriffamina1-9497's projects Team on Vercel. A member of the Team first needs to authorize it. |
|
@aigbagbobila Great news! 🎉 Based on an automated assessment of this PR, the linked Wave issue(s) no longer count against your application limits. You can now already apply to more issues while waiting for a review of this PR. Keep up the great work! 🚀 |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Summary
This change addresses the deployment, dependency security, user-generated content, and response-header work tracked in issues #688–#691. It adds environment-gated Vercel deployment automation, makes the notification WebSocket configurable per environment, audits dependencies in CI, prevents unsafe HTML rendering, and adds baseline security headers in report-only CSP mode.
Changes
Issue #688 — staging and production environment configuration
stagingas Vercel Preview deployments and deploysv*tags to Vercel Production.productionEnvironment. Repository owners must configure required reviewers and branch/tag restrictions in GitHub settings.VITE_WEBSOCKET_URL, validates that it usesws:orwss:, and adds the auth token through URL query parameters. When unset, it retains the same-origin endpoint behavior.docs/deploy.md, including an explicit note that an owner must verify rollback once the hosting project is configured.VITE_ENABLE_ANALYTICSas an environment-specific opt-in, defaulting to false. No analytics provider is enabled by this change.Issue #689 — dependency updates and vulnerability scanning
npm installto lockfile-respectingnpm ci.npm audit --audit-level=highto CI, so high and critical vulnerabilities fail validation.Issue #690 — safe user-generated content rendering
DisputeThread, so markup andjavascript:text remain inert.dangerouslySetInnerHTMLin TypeScript React files.ProfileFormor clickable links in dispute comments exist in this checkout; no unsupported profile/comment-link behavior was introduced.Issue #691 — CSP and hosting headers
Content-Security-Policy-Report-OnlyplusReferrer-Policy,X-Content-Type-Options, andX-Frame-Optionsresponse headers invercel.json..example.comAPI hosts in the initial policy are placeholders and must be replaced with the real staging and production origins before enforcement.Validation
git diff --check.node --check eslint.config.js.vercel.jsonandpackage.jsonsuccessfully.node_modulesis absent, so local ESLint and build/type checks were not available. CI will run the configured validation after dependencies are installed by the workflow.Required repository setup
stagingandproduction; add the documented variables andVERCEL_TOKENsecret separately to each.stagingbranch; restrict production tov*tags and configure required reviewers.Closes #688
Closes #689
Closes #690
Closes #691