This repository is used to test and validate the security scan workflow and package change detection system before deploying to production.
- Test the
detect_package_changes.pyscript - Validate the
security-scan.ymlGitHub Actions workflow - Ensure package.json change detection works correctly
- Verify approval gates function as expected
test-security-scan/
├── package.json # Minimal Node.js package for testing
├── TESTING_PLAN.md # Comprehensive testing plan
├── .github/
│ ├── workflows/
│ │ ├── security-scan.yml # Main security scan workflow
│ │ └── start_slack_thread.yml # Simplified notification workflow
│ └── scripts/
│ └── detect_package_changes.py # Package change detection script
└── README.md # This file
This repository will be used to test the following scenarios:
- Add Dependency - Adding a new package dependency
- Change Version - Updating an existing dependency version
- Non-Dependency Change - Modifying scripts or other non-dependency fields
- Remove Dependency - Removing an existing dependency
- Create test branches for each scenario (e.g.,
test/add-dependency) - Make the relevant package.json changes
- Push and observe the GitHub Actions workflow behavior
- Verify that change detection and approval gates work correctly
any_changed=truewhen dependencies/versions changeany_changed=falsewhen only non-dependency fields change- Accurate change detection in alert_lines output
- Proper approval gate triggering
See TESTING_PLAN.md for the complete testing strategy.