T09 · Insecure Skill Coding Practices
- Location
src/index.ts:40- Finding
Quality Gate Fails Open Without Performing Project Checks
- Content
View full analysis
- Remediation
View remediation
0 && allChecks.every(check => check.passed) ``` 5. Return `checked: false` when no scan occurred, when the project cannot be accessed, or when required checks terminate unexpectedly. 6. Treat execution errors as gate failures and return structured error information rather than silently approving the project. 7. Ensure the AI-specific `passed` count is calculated from its check array rather than hardcoded. 8. Align the runtime output with the output schema declared in `skill.json`. 9. Add behavioral tests covering at least: - An invalid or inaccessible project path. - A project with a failed required check. - AI-specific failures causing overall failure. - A successful result only after all required checks execute and pass. - Exceptions during scanning resulting in a failed, not successful, gate. 10. Do not claim that automatic repairs occurred unless each modification is explicitly recorded and successfully verified. ]]>
