Skip to content

Detect Notion integration tokens (ntn_...) #64

Description

@omerbek

Notion is often used as a backend in no-code and AI side projects.

Format: new integration tokens start with ntn_ followed by 40+ characters. Verify against Notion's docs. The older secret_ prefix is too generic and would cause false alarms, so leave it out.

How to do it

  1. Add ("Notion integration token", r"\bntn_[A-Za-z0-9]{40,}\b") (or your verified version) to SECRET_PATTERNS in repodx.py.
  2. Add "ntn_" to CANDIDATE_LITERALS.
  3. Add the key to SecretScanTests.test_detects_provider_keys in tests/test_repodx.py, built with fake(...).
  4. Run python3 -m unittest discover and python3 repodx.py . (must stay 100/100).

Comment here to claim it. One issue per person. See CONTRIBUTING.md. Never paste a real key.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions