Skip to content

test(http-recorder): use an obviously-fake Google API key fixture - #4

Merged
qkhalk merged 1 commit into
mainfrom
fix-google-key-fixture
Aug 19, 2026
Merged

qkhalk merged 1 commit into
mainfrom
fix-google-key-fixture

Conversation

@qkhalk

@qkhalk qkhalk commented Aug 19, 2026 •

Copy link
Copy Markdown
Collaborator

Issue for this PR

Closes #7

Type of change

  • Bug fix
  • New feature
  • Refactor / code improvement
  • Documentation

What does this PR do?

Replaces the Google API key literal used as a test fixture in
packages/http-recorder/test/record-replay.test.ts with an obviously-fake value
(AIzaSyFakeTestKeyForSecretDetectionOnly0001) so it stops tripping secret scanners.

Why this works:

  • The old literal (AIzaSyDHibiBRvJZLsFnPYPoiTwxY4ztQ55yqCE) matched the Google
    API key detector format closely enough to raise false positives, though it was
    never a real credential.
  • The new value still satisfies the detector regex AIza[0-9A-Za-z_-]{20,}, so
    the existing secretFindings assertion (expects reason "Google API key") stays
    valid. Only a test fixture literal changed; no production code touched.

How did you verify your code works?

Only a test fixture literal changed. The detector regex requires AIza plus at
least 20 alphanumerics/underscores/dashes; the new string satisfies it, so the
secretFindings assertion (reason "Google API key") remains valid.

Screenshots / recordings

Not a UI change.

Checklist

  • I have tested my changes locally
  • I have not included unrelated changes in this PR

The previous fixture value looked like a real Google API key
(AIzaSy... + 35 chars), which trips secret scanners as a false positive.
Replace it with a clearly synthetic string that still matches the
AIza[0-9A-Za-z_-]{20,} pattern so the secret-detection assertion stays valid.
Copilot AI lite review requested due to automatic review settings August 19, 2026 01:26

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.

@github-actions

Copy link
Copy Markdown

Thanks for your contribution!

This PR doesn't have a linked issue. All PRs must reference an existing issue.

Please:

  1. Open an issue describing the bug/feature (if one doesn't exist)
  2. Add Fixes #<number> or Closes #<number> to this PR description

See CONTRIBUTING.md for details.

@github-actions

Copy link
Copy Markdown

This PR doesn't fully meet our contributing guidelines and PR template.

What needs to be fixed:

  • PR description is missing required template sections. Please use the PR template.

Please edit this PR description to address the above within 2 hours, or it will be automatically closed.

If you believe this was flagged incorrectly, please let a maintainer know.

@github-actions

Copy link
Copy Markdown

This pull request has been automatically closed because it was not updated to meet our contributing guidelines within the 2-hour window.

Feel free to open a new pull request that follows our guidelines.

@github-actions github-actions Bot closed this Aug 19, 2026
@qkhalk qkhalk reopened this Aug 19, 2026
@qkhalk
qkhalk merged commit c8b9ed5 into main Aug 19, 2026
5 of 14 checks passed
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.

test: use an obviously-fake Google API key fixture

2 participants