Skip to content

Add secure defaults checklist and CI linting#10

Merged
hyperpolymath merged 1 commit into
mainfrom
claude/secure-defaults-ci-linting-e9h53
Dec 27, 2025
Merged

Add secure defaults checklist and CI linting#10
hyperpolymath merged 1 commit into
mainfrom
claude/secure-defaults-ci-linting-e9h53

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner
  • Add SECURE_DEFAULTS.md with comprehensive security checklist covering:

    • PHP configuration best practices
    • Input validation patterns with php-aegis Validator
    • Output sanitization with php-aegis Sanitizer
    • HTTP security headers configuration
    • Authentication, database, file, and crypto guidelines
    • CI/CD and dependency management practices
  • Add phpstan.neon with maximum strictness (level 9)

    • Enable all strict type checks
    • Check for implicit mixed types
    • Report maybes in method signatures
  • Add .php-cs-fixer.dist.php with PSR-12 and security rules

    • Enforce strict_types declaration
    • Enable strict comparisons
    • Warn on eval() usage
    • Migrate to secure random functions
  • Add php-lint.yml CI workflow with comprehensive checks:

    • PHP syntax validation
    • PHP-CS-Fixer code style enforcement
    • PHPStan level 9 static analysis
    • SPDX license header verification
    • strict_types declaration check
    • Security pattern detection (dangerous functions, weak crypto)
    • Composer dependency audit
    • PHP 8.1-8.4 compatibility matrix
  • Update .gitignore for PHP tooling cache files

- Add SECURE_DEFAULTS.md with comprehensive security checklist covering:
  - PHP configuration best practices
  - Input validation patterns with php-aegis Validator
  - Output sanitization with php-aegis Sanitizer
  - HTTP security headers configuration
  - Authentication, database, file, and crypto guidelines
  - CI/CD and dependency management practices

- Add phpstan.neon with maximum strictness (level 9)
  - Enable all strict type checks
  - Check for implicit mixed types
  - Report maybes in method signatures

- Add .php-cs-fixer.dist.php with PSR-12 and security rules
  - Enforce strict_types declaration
  - Enable strict comparisons
  - Warn on eval() usage
  - Migrate to secure random functions

- Add php-lint.yml CI workflow with comprehensive checks:
  - PHP syntax validation
  - PHP-CS-Fixer code style enforcement
  - PHPStan level 9 static analysis
  - SPDX license header verification
  - strict_types declaration check
  - Security pattern detection (dangerous functions, weak crypto)
  - Composer dependency audit
  - PHP 8.1-8.4 compatibility matrix

- Update .gitignore for PHP tooling cache files
@hyperpolymath
hyperpolymath merged commit d3ddedd into main Dec 27, 2025
14 of 17 checks passed
@hyperpolymath
hyperpolymath deleted the claude/secure-defaults-ci-linting-e9h53 branch December 27, 2025 14:33
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.

2 participants