This lesson demonstrates installing Talisman, scanning for secrets, and configuring exceptions on a developer workstation.
In this lesson, you’ll see Talisman in action—installing it on a developer workstation, scanning for secrets before pushing, and configuring exceptions.
Download and install Talisman as a Git hook in your project directory:
Copy
Ask AI
# Fetch and prepare the installercurl https://thoughtworks.github.io/talisman/install.sh -o ~/install-talisman.shchmod +x ~/install-talisman.shcd /path/to/your-git-project# Install as a pre-push hook (default)~/install-talisman.sh# Optionally install as a pre-commit hook~/install-talisman.sh pre-commit
The installer adds or updates hooks in .git/hooks. Ensure you have write permissions to the project directory before running the script.
With only approved files left, the final push should succeed.By integrating Talisman as a pre-push (or pre-commit) hook, you ensure that sensitive data—passwords, API keys, and Base64-encoded tokens—are caught before they reach your remote repository.