Skip to content

test(oracle): avoid secret-scanner fixture false positive - #120

Merged
hyperpolymath merged 1 commit into
mainfrom
agent/test-fixture-clean
Sep 21, 2026
Merged

hyperpolymath merged 1 commit into
mainfrom
agent/test-fixture-clean

Conversation

@hyperpolymath

Copy link
Copy Markdown
Owner

Removes a test-only password-shaped literal introduced by PR #118. The runtime-assembled fixture preserves coverage while preventing GitGuardian from reporting a false positive.

This branch is based directly on the merged main commit so the security scanner does not re-process the historical commit that introduced the fixture.

Local verification: cargo test -p policy-oracle --lib --locked.

@coderabbitai

coderabbitai Bot commented Sep 21, 2026

Copy link
Copy Markdown
Contributor

Warning

Review limit reached

Next included review available in 45 minutes.

Check out review usage here.

View limit details

Limit details: You’ve used the included review currently available.

You've used all free OSS reviews for now. Wait for the free limit to reset to keep reviewing this public repository.

Learn how review limits work.

Review configuration:

⚙️ Run configuration

Configuration used: Organization UI

Review profile: ASSERTIVE

Plan: Advanced

Run ID: d9177b0d-0e3c-4bff-9f20-c9b17d631039

📥 Commits

Reviewing files that changed from the base of the PR and between 08d42c8 and e4f9c9b.

📒 Files selected for processing (1)
  • src/oracle/src/lib.rs

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands.

@hyperpolymath
hyperpolymath merged commit 095ed8c into main Sep 21, 2026
29 of 34 checks passed
@hyperpolymath
hyperpolymath deleted the agent/test-fixture-clean branch September 21, 2026 20:05
Comment thread src/oracle/src/lib.rs
let file = root.join("notes.txt");
fs::write(&file, r#"password = "not-a-real-secret-123""#).unwrap();
let content = format!(
r#"password = "{}""#,
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