Urgent.News

What's breaking now, across hundreds of outlets.

Tech

Adopting a secret scanner in a legacy repo: 10 minutes with baseline mode

For teams with years of history that want a real pre-merge gate, not another red job nobody reads. Commands and exit codes below were run locally; demo credentials are random values generated at runtime and all output is redacted. Why secret scanners die in legacy repos A greenfield repo is easy: the first scan is clean. A legacy repo is not. You add gitleaks , trufflehog or leakpulse to CI and…

Legacy codebases often accumulate secrets in their history, making it challenging to maintain a secure codebase. Traditional secret scanners struggle with these environments, leading teams to either ignore the problem or disable the scanner altogether. LeakPulse's baseline mode addresses this issue by creating a reviewed inventory of existing secrets, allowing teams to focus on new findings during code reviews.

To implement this, LeakPulse v0.5.0 was added to a legacy Python repository containing hardcoded DeepSeek API keys. The first scan revealed a high-priority secret, but writing a baseline snapshot allowed the CI pipeline to continue running without failure. The snapshot captured the known secret, and subsequent scans confirmed that the baseline effectively suppressed the existing secret.

During the rollout process, new secrets were successfully detected and flagged by LeakPulse. A GitHub token was added to a new file, triggering a high-priority finding. When the key was rotated and the new value introduced, LeakPulse registered it as a new secret, demonstrating the system's ability to catch rotated secrets. The JSON output format provided a clear separation between new and suppressed findings, making it easier to triage the results.

When implementing the solution in a CI environment, such as GitHub Actions, LeakPulse can be integrated with minimal configuration. The Action checks out the repository, runs the LeakPulse scan with the baseline file, and fails the pipeline only on high-priority findings. This approach ensures that the pipeline remains green unless new secrets are introduced, providing a reliable pre-merge gate for legacy repositories.

Rewritten by urgent.news; may contain errors — check the original.

Source: dev.to

Read the original at dev.to →

Report a problem with this story

More in Tech

UX Writing vs. Technical Writing: What's the Difference?

A button says "Save changes." Two screens later, a help article says, "To save your changes, select the Save changes button in the top right corner of the page." Same product. Same action.

  • UX writing focuses on product experience elements like button labels and error messages.
  • Technical writing provides detailed documentation and guides for product use.
  • UX writing targets engaged users, while technical writing serves users seeking information.

Log the call after it ends, a Twilio voice agent to HubSpot and WhatsApp with Zapier

This article was drafted with AI help and reviewed by the author. When a team adds a phone agent, the CRM wish list arrives quickly. Log every call in HubSpot. Update the contact.

  • Voice agent logs call after it ends
  • Zapier processes Twilio data independently of call flow
  • Outcome options limited to booked, callback requested, not interested, wrong number

More from Saturday, 28 November 2026 →