Skip to content

A repository intended to be used as a template for doing demonstrations/introductions/comparisons for Talisman and detect-secrets.

License

Notifications You must be signed in to change notification settings

qutax/detect-secrets-talisman-comparison

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

2 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Talisman and detect-secrets comparison

Steps for using this repository for a demonstration:

  1. Make a copy this directory
  2. Remove the .git directory
  3. Follow the rest of this README's instructions
  4. Feel free to add some information about the basic usage, pros and cons etc.

Prerequisites

What to do

# Initialize Git:
git init
# Install pre-commit hooks:
pre-commmit install -f
# Try doing the initial commit (both Talisman and detect-secrets
# pre-commit hooks should make it fail):
git add .
git commit -m "Initial commit"
# Resolve by:
# 1. Adjusting and configure Talisman's `.talismanrc` file (see CLI output)
# 2. Creating baseline file for detect-secrets using this command:
detect-secrets scan --all-files > .secrets.baseline
# Try doing the initial commit (should be successful now):
git add .
git commit -m "Initial commit"

Example CLI commands

In case you want to use the tools outside of git hooks.

# Talisman:
talisman -p "./**/*.{java}"
# detect-secrets
detect-secrets scan src --all-files
# detect-secrets for specific file while using the baseline file
detect-secrets-hook --baseline .secrets.baseline src/main/java/org/example/Main.java

Links

About

A repository intended to be used as a template for doing demonstrations/introductions/comparisons for Talisman and detect-secrets.

Resources

License

Stars

Watchers

Forks

Languages