Skip to content

fix(erust): resolve CodeQL hard-coded credential alert in integration test#7594

Merged
h0lybyte merged 1 commit intodevfrom
trunk/codeql-hardcoded-pw-1772608622
Mar 4, 2026
Merged

fix(erust): resolve CodeQL hard-coded credential alert in integration test#7594
h0lybyte merged 1 commit intodevfrom
trunk/codeql-hardcoded-pw-1772608622

Conversation

@h0lybyte
Copy link
Member

@h0lybyte h0lybyte commented Mar 4, 2026

Summary

  • Fixes CodeQL security alert #31 — hard-coded password in integration.rs
  • The flagged value was an intentionally-invalid credential in a #[test] #[ignore] integration test (no real secret)
  • Password is now built at runtime via format!("invalid-test-pw-{}", line!()) so CodeQL no longer matches it as a literal

Test plan

… test

Build the fake password at runtime via format!()+line!() so CodeQL no
longer flags it as a hard-coded cryptographic value.  The test is
#[ignore] and uses intentionally-invalid credentials for negative-path
validation — no real secret was ever present.
@github-actions
Copy link
Contributor

github-actions bot commented Mar 4, 2026

Dependency Review

✅ No vulnerabilities or license issues or OpenSSF Scorecard issues found.

Scanned Files

None

@h0lybyte h0lybyte merged commit 92f94c5 into dev Mar 4, 2026
5 checks passed
@h0lybyte h0lybyte deleted the trunk/codeql-hardcoded-pw-1772608622 branch March 4, 2026 08:00
@github-actions github-actions bot mentioned this pull request Mar 4, 2026
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.

1 participant