Skip to content

fix: hardcoded test secrets and qs/follow-redirects vulnerabilities (Snyk) - v1.5.4 - #269

Merged
reeshika-h merged 5 commits into
mainfrom
fix/snyk-hardcoded-secrets-tests
Nov 2, 2026
Merged

reeshika-h merged 5 commits into
mainfrom
fix/snyk-hardcoded-secrets-tests

Conversation

@reeshika-h

Copy link
Copy Markdown
Contributor

Summary

Resolves the Snyk findings in this repo: DX-22032 to DX-22041 (hardcoded test secrets/passwords), plus the unticketed qs and follow-redirects vulnerabilities (v1.5.4).

  • Tests: apiKey values are the ALL_CAPS placeholder YOUR_API_KEY; accessToken and password use per-run generated values from a new test/utils/test-secrets.ts (Snyk treats those property names as credential sinks, and the tests compare against the value). Removed deepcode ignore comments in the tests.
  • Dependencies: qs 6.16.0 → 6.16.1 (exact pin), follow-redirects → 1.16.2 (via axios). Patch-level only.
  • Version 1.5.3 → 1.5.4 with a changelog entry.
  • .talismanrc: refreshed the pinned checksum for package-lock.json (it changes with the dependency bump, as in previous bumps), and added checksum-pinned entries for four test files (test/request.spec.ts, test/utils/mocks.ts, test/contentstack-error.spec.ts, test/utils/test-secrets.ts). Talisman flags them at low severity by keyword (password: TEST_PASSWORD, apiKey: 'YOUR_API_KEY') even though the values are generated or placeholders; this is the same mechanism the repo already uses for other test files. Please review these entries.

Verification

  • snyk code test: 10 → 0. snyk test: 3 → 0.
  • Tests: 163/163 pass.

🤖 Generated with Claude Code

cs-raj and others added 4 commits October 6, 2026 12:02
…velopment

chore: back-merge main into development
Per-run generated values for credential-shaped test inputs, qs 6.16.1,
follow-redirects 1.16.2 and v1.5.4. Refresh the package-lock checksum and
add checksum-pinned Talisman entries for four flagged test files.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@reeshika-h
reeshika-h requested a review from a team as a code owner October 26, 2026 11:47
@snyk-io

snyk-io Bot commented Oct 26, 2026 •

Copy link
Copy Markdown

✅ Snyk checks have passed. No issues have been found so far.

Status Scan Engine Critical High Medium Low Total (0)
✅ Open Source Security 0 0 0 0 0 issues
✅ Licenses 0 0 0 0 0 issues
✅ Code Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@github-actions

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

cs-raj
cs-raj previously approved these changes Oct 30, 2026
@reeshika-h
reeshika-h changed the base branch from development to main November 2, 2026 05:58
@reeshika-h
reeshika-h dismissed cs-raj’s stale review November 2, 2026 05:58

The base branch was changed.

cs-raj
cs-raj previously approved these changes Nov 2, 2026
Bump qs to 6.17.1, axios to ^1.21.0 and tslib to ^2.9.1, as requested in
review. Lock file refreshed (follow-redirects stays at 1.16.2) and the
.talismanrc checksum for package-lock.json updated to match.

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

🔒 Security Scan Results

ℹ️ Note: Only vulnerabilities with available fixes (upgrades or patches) are counted toward thresholds.

Check Type Count (with fixes) Without fixes Threshold Result
🔴 Critical Severity 0 0 10 ✅ Passed
🟠 High Severity 0 0 25 ✅ Passed
🟡 Medium Severity 0 0 500 ✅ Passed
🔵 Low Severity 0 0 1000 ✅ Passed

⏱️ SLA Breach Summary

✅ No SLA breaches detected. All vulnerabilities are within acceptable time thresholds.

Severity Breaches (with fixes) Breaches (no fixes) SLA Threshold (with/no fixes) Status
🔴 Critical 0 0 15 / 30 days ✅ Passed
🟠 High 0 0 30 / 120 days ✅ Passed
🟡 Medium 0 0 90 / 365 days ✅ Passed
🔵 Low 0 0 180 / 365 days ✅ Passed

✅ BUILD PASSED - All security checks passed

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Coverage report

St.❔
Category Percentage Covered / Total
🟢 Statements 99.23% 258/260
🟢 Branches 96.69% 146/151
🟢 Functions 100% 39/39
🟢 Lines 99.17% 239/241

Test suite run success

163 tests passing in 8 suites.

Report generated by 🧪jest coverage report action from 0373a2c

@github-actions

github-actions Bot commented Nov 2, 2026

Copy link
Copy Markdown

Coverage report

St.❔
Category Percentage Covered / Total
🟢 Statements 99.23% 258/260
🟢 Branches 96.69% 146/151
🟢 Functions 100% 39/39
🟢 Lines 99.17% 239/241

Test suite run success

163 tests passing in 8 suites.

Report generated by 🧪jest coverage report action from 0373a2c

@reeshika-h
reeshika-h merged commit 8ceccfc into main Nov 2, 2026
13 checks passed
@reeshika-h
reeshika-h deleted the fix/snyk-hardcoded-secrets-tests branch November 2, 2026 09:26
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