Skip to content

docs: adding custom Unify script to Mintlify docs#5228

Merged
maidul98 merged 1 commit intomainfrom
unify-script
Jan 21, 2026
Merged

docs: adding custom Unify script to Mintlify docs#5228
maidul98 merged 1 commit intomainfrom
unify-script

Conversation

@ashwin-infisical
Copy link
Collaborator

Adding a custom script to Mintlify using Unify.

@gitguardian
Copy link

gitguardian bot commented Jan 21, 2026

⚠️ GitGuardian has uncovered 1 secret following the scan of your pull request.

Please consider investigating the findings and remediating the incidents. Failure to do so may lead to compromising the associated services or software components.

🔎 Detected hardcoded secret in your pull request
GitGuardian id GitGuardian status Secret Commit Filename
21481262 Triggered Generic High Entropy Secret f75f0d7 docs/unify.js View secret
🛠 Guidelines to remediate hardcoded secrets
  1. Understand the implications of revoking this secret by investigating where it is used in your code.
  2. Replace and store your secret safely. Learn here the best practices.
  3. Revoke and rotate this secret.
  4. If possible, rewrite git history. Rewriting git history is not a trivial act. You might completely break other contributing developers' workflow and you risk accidentally deleting legitimate data.

To avoid such incidents in the future consider


🦉 GitGuardian detects secrets in your source code to help developers and security teams secure the modern development process. You are seeing this because you or someone else with access to this repository has authorized GitGuardian to scan your pull request.

@maidul98
Copy link
Collaborator

Snyk checks have passed. No issues have been found so far.

Status Scanner Critical High Medium Low Total (0)
Open Source Security 0 0 0 0 0 issues

💻 Catch issues earlier using the plugins for VS Code, JetBrains IDEs, Visual Studio, and Eclipse.

@greptile-apps
Copy link
Contributor

greptile-apps bot commented Jan 21, 2026

Greptile Summary

Adds a new analytics/tracking script from Unify Intent (unify.js) to the docs folder. The script initializes a client-side SDK that queues analytics events (identify, page, startAutoPage, etc.) and dynamically loads the Unify tracking script from https://tag.unifyintent.com.

Key observations:

  • Exposes API key wk_YbNMAb89_ErhtGc2t7wWokhRTmuKFcL7UE2NwWgfd in client-side code (verify this is intended for public use)
  • Loads external script from third-party domain (security consideration: compromised domain could execute arbitrary code)
  • File is created but not referenced in docs.json or Mintlify configuration - unclear how it will be integrated

Confidence Score: 3/5

  • This PR is moderately safe - adds third-party analytics without obvious vulnerabilities, but has integration and security considerations
  • Score reflects: (1) third-party script dependency introduces trust and supply chain risks, (2) API key exposure needs verification, (3) unclear integration path with Mintlify, (4) no immediate logical or syntax errors in the code itself
  • Verify docs/unify.js is properly integrated into Mintlify configuration and that the exposed API key is intended for public use

Important Files Changed

Filename Overview
docs/unify.js New third-party analytics script from Unify Intent; exposes API key in client-side code and loads external script; implementation not integrated into Mintlify config

Copy link
Contributor

@greptile-apps greptile-apps bot left a comment

Choose a reason for hiding this comment

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

1 file reviewed, 3 comments

Edit Code Review Agent Settings | Greptile

@ashwin-infisical ashwin-infisical changed the title Adding Unify custom script to Mintlify Docs type(docs): Adding custom Unify script to Mintlify docs Jan 21, 2026
@ashwin-infisical ashwin-infisical changed the title type(docs): Adding custom Unify script to Mintlify docs type(docs): adding custom Unify script to Mintlify docs Jan 21, 2026
@ashwin-infisical ashwin-infisical changed the title type(docs): adding custom Unify script to Mintlify docs 'type(docs): adding custom Unify script to Mintlify docs' Jan 21, 2026
@ashwin-infisical ashwin-infisical changed the title 'type(docs): adding custom Unify script to Mintlify docs' docs(): adding custom Unify script to Mintlify docs Jan 21, 2026
@ashwin-infisical ashwin-infisical changed the title docs(): adding custom Unify script to Mintlify docs docs: adding custom Unify script to Mintlify docs Jan 21, 2026
@maidul98 maidul98 merged commit a24f143 into main Jan 21, 2026
8 of 17 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.

2 participants