nosecretsv0.5.0

Changelog

Generated from CHANGELOG.md in the project repository. Never maintained twice.

0.5.0

12 November 2026

  • addedOutput: --format sarif prints a SARIF 2.1.0 log for GitHub code scanning. Details: CLI reference.
  • addedAgents: nosecrets hook claude-code is a Claude Code PreToolUse hook that blocks git commit (also git -C, -a/-am and chained git add && git commit) when the content to be committed contains a secret; it exits 2 with the masked findings and a remediation hint on standard error, and 0 on its own errors. Details: Coding agents.
  • addedRules: AI provider keys (Anthropic, OpenAI, Hugging Face, Groq, xAI, OpenRouter, Replicate, Perplexity) and developer-tool tokens (1Password, Doppler, Docker Hub, Sentry, Linear, Notion, Postman, Databricks, Shopify, Telegram bot); 75 built-in rules in total.
  • addedRules: the changed token formats of GitHub App installation tokens, Cloudflare (cfk_, cfut_, cfat_, cfoat_), Vercel, Supabase (sb_secret_, sbp_), GitLab (routable) and Slack (xapp-, xoxe) are detected. Where the vendor documents only the prefix, the rest of the token is matched loosely.
  • addedRules: validate.checksum = "crc32-base62-suffix6" for custom rules. Details: Custom rules.
  • addedSite: the Showcase shows eight use cases as real nosecrets runs next to the files they scan, and the start page links the most common ones.
  • addedREADME: a recorded terminal scene and the same real examples.
  • addedEntropy: [entropy] word_filter (default true) skips candidates in which common English and programming words cover at least half of the characters, such as getUserAuthenticationTokenFromRequest. Details: Configuration.
  • addedDocs: Performance lists measured timings for a commit, a tracked scan and a working-tree scan, with the machine they were taken on.
  • addedDetection: secrets stored base64-encoded (Kubernetes Secret values, .env values, CI variables) are found. Tokens of 24 or more base64 characters are decoded one level deep (standard and URL-safe alphabet) and matched against the rules; the finding sits at the encoded token and is marked (base64) in text and "encoding": "base64" in JSON. Disable with [decode] base64 = false. Details: Configuration.
  • addedContributors: scripts/bench.sh builds the release binary, generates a deterministic repository and measures the scans with hyperfine.
  • changedEntropy: ${VAR}, ${VAR:-default} and ${obj.prop} interpolation, access such as os.environ["X"] and generic type signatures such as Promise<Foo<boolean>> are no longer reported; a literal token next to them still is.
  • changedPages: the project site uses the current shared theme (0.12.12).
  • changedPages: the project site uses the shared theme 0.12.10.

0.4.0

11 November 2026

  • breakingCLI: a scan that cannot run exits with status 2 instead of 1; status 1 now always means blocking findings. A path that does not exist is such an error instead of a clean result.
  • breakingConfiguration: unknown keys in .nosecrets.toml and in rule files are errors, as are rules with an empty id or pattern or with min_length above max_length.
  • breakingInline ignores: @nsi and @nosecrets-ignore count only as separate words; the same characters inside an e-mail address or another word no longer suppress the findings of that line.
  • breakingLibrary: the crates nosecrets-rules, nosecrets-filter and nosecrets-report are merged into nosecrets-core, which exports their types directly and returns one error type, nosecrets_core::Error. The three crates are no longer developed; the deprecated collect_staged_files is removed.
  • addedConfiguration: [scan] max_file_size skips files above a size limit (default 5 MiB) and reports how many were skipped. Details: Configuration.
  • addedInline ignores: gitleaks:allow is accepted as a marker.
  • addedpre-commit: hook nosecrets-system runs the installed binary.
  • addedRules: optional field generic marks catch-all rules.
  • changedOutput: when several rules match the same text, only the most severe one is reported, and a specific rule wins over a generic one; findings are sorted by path, line and column.
  • changedOutput: the preview reveals at most a quarter of a secret and nothing of secrets shorter than 12 characters. Fingerprints are unchanged.
  • changedScanning: ignored directories are no longer read; path scans skip them without descending.
  • changedPages: the project site uses the current shared theme (0.12.8).
  • changedSite: the start page now carries a release teaser and an FAQ (theme 0.11.1).
  • changedBuild: building from source requires Rust 1.88 (was 1.85), as sha2 0.11 needs it.
  • changedCrates: nosecrets-core and nosecrets-cli are published from the release workflow via Trusted Publishing, after approval in the crates-io environment; no local cargo publish.
  • changedDependencies: toml 1.x; console and hex are no longer used.
  • changedDocs: concept, architecture and rule format are documented in one place, the project documentation; CONCEPT.md, ARCHITECTURE.md and RULES_SPEC.md are removed. The JSON output is specified in the CLI reference.
  • changedContributors: CI checks advisories and licences with cargo-deny, actions are pinned to commit SHAs, and Dependabot proposes weekly updates.
  • fixedpre-commit: the hook nosecrets, which builds the binary from source, installs again.
  • securitySite: the project site builds with Astro 7.4.4 and updated dependencies, which closes the advisories for devalue, vite, undici, zod, source-map-js, fast-uri and Astro itself.
  • securityCrates: nosecrets-report uses sha2 0.11, so block-buffer 0.10.4 (GHSA-qwgh-2vcv-g2f7) is no longer pulled in; fingerprints stay identical, existing .nosecretsignore entries keep working.

0.3.9

26 October 2026

  • addedReleases: the binaries carry a signed build provenance attestation (verify with gh attestation verify).
  • changednpm: @casoon/nosecrets is published from the release workflow via Trusted Publishing (provenance, no stored token), after approval in the npm environment.
  • changedContributors: CI runs nosecrets scan --tracked on the repository itself; test fixtures, rule definitions and the synthetic entropy test token are excepted in .nosecrets.toml.

0.3.8

14 September 2026

  • addedscan --tracked for a one-time baseline of all tracked Git-index blobs.
  • addedRepeatable --rules <FILE> support for repository-specific TOML rules.
  • addedBehavioral fixtures covering all 50 built-in rules.
  • addedGitHub Pages documentation.
  • fixedscan --staged now reads the exact staged blobs instead of working-tree copies.
  • fixedScan read errors now fail the command rather than being silently ignored.
  • fixedRelease publishing and downloaded archive checksum verification are strict.
  • changedRemoved unused dependencies and the vulnerable transitive gix dependency tree.
  • changedIntel macOS installation now directs users to the supported Cargo build.