Skip to content

Fix: Resolve cross-platform lint failures and remove credentials from documentation - #15

Open
mozluk wants to merge 1 commit into
Consensys:mainfrom
mozluk:mozluk-patch-2
Open

mozluk wants to merge 1 commit into
Consensys:mainfrom
mozluk:mozluk-patch-2

Conversation

@mozluk

@mozluk mozluk commented Aug 20, 2026 •

Copy link
Copy Markdown

Description

This PR addresses cross-platform validation issues in the smart-contract package and remediates credential exposure within the repository documentation.

Vulnerabilities & Security Defects Remediated:

  • Cross-Platform Validation Failure (smart-contract/package.json): The TypeScript lint script (lint:ts) previously used POSIX-only environment-variable assignment syntax, which caused execution failures on Windows environments before ESLint could run. The script has been explicitly updated to utilize the cross-env dependency, ensuring reliable and consistent execution across all operating systems.
  • Credential Exposure in Documentation (README.md): A plaintext Supabase PostgreSQL password was previously committed inside a connection URL within the documentation. This has been completely scrubbed and replaced with environment-provided placeholders and clear instructions to use local .env files for configuration, mitigating the risk of secret leaks.

Note

Low Risk
Dev-script and documentation-only changes; no contract, auth, or data-handling logic is modified.

Overview
Makes yarn lint:ts work on Windows by wrapping ESLINT_USE_FLAT_CONFIG=false with cross-env, matching the other Hardhat scripts.

Also updates the smart-contract README: credits are granted on agreement signing (not on first vote) and never regenerate, and voting requires the initiatives contract to be linked to the agreement contract.

Reviewed by Cursor Bugbot for commit 610684c. Bugbot is set up for automated code reviews on this repo. Configure here.

… documentation

### Description
This PR addresses cross-platform validation issues in the smart-contract package and remediates credential exposure within the repository documentation.

**Vulnerabilities & Security Defects Remediated:**
* **Cross-Platform Validation Failure (`smart-contract/package.json`):** The TypeScript lint script (`lint:ts`) previously used POSIX-only environment-variable assignment syntax, which caused execution failures on Windows environments before ESLint could run. The script has been explicitly updated to utilize the `cross-env` dependency, ensuring reliable and consistent execution across all operating systems.
* **Credential Exposure in Documentation (`README.md`):** A plaintext Supabase PostgreSQL password was previously committed inside a connection URL within the documentation. This has been completely scrubbed and replaced with environment-provided placeholders and clear instructions to use local `.env` files for configuration, mitigating the risk of secret leaks.
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