fix: suppress false-positive Snyk hardcoded-password finding - #121
Conversation
…rror Snyk Code flagged the dummy test fixture value as a hardcoded password (CWE-798). Annotate it with a deepcode ignore comment since it's a test value, not a real credential. Verified with snyk code test and trufflehog that no active/real secrets remain. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
✅ Snyk checks have passed. No issues have been found so far.
💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse. |
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
The Snyk Gradle scan job was failing with "Unsupported class file major version 69" because no JDK was configured, so Gradle fell back to whatever Java the runner defaults to. Explicitly set up JDK 17 to match the project's sourceCompatibility and the JDK used in publish-release.yml. Co-Authored-By: Claude Sonnet 5 <noreply@anthropic.com>
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
1 similar comment
🔒 Security Scan Results
⏱️ SLA Breach Summary
✅ BUILD PASSED - All security checks passed |
🔒 Security Scan Results
⏱️ SLA Breach Summary
ℹ️ Vulnerabilities Without Available Fixes (Informational Only)The following vulnerabilities were detected but do not have fixes available (no upgrade or patch). These are excluded from failure thresholds:
✅ BUILD PASSED - All security checks passed |
Summary
validationErrors.put("password", "Password too short")) inTestError.javaas a hardcoded password.// deepcode ignore HardcodedPassword: test fixture value, not a real secretsuppression, since this is test data, not a real credential.Verification
snyk code test— 0 active results (previously 1, in this file).trufflehog filesystem .— 0 verified/unverified secrets across the repo.Test plan
snyk code testpasses cleantrufflehogscan clean🤖 Generated with Claude Code