thoughtworks / talisman

Using a pre-commit hook, Talisman validates the outgoing changeset for things that look suspicious — such as tokens, passwords, and private keys.
https://thoughtworks.github.io/talisman/
MIT License
1.91k stars 242 forks source link

Talisman git scanner in azure devops pipeline #365

Open nasreenwahab opened 2 years ago

nasreenwahab commented 2 years ago

Issue: In the azure DevOps pipeline, I have added the bash script task and tried to enable talisman scanwithHTML but ran into the error - /tmp/install_talisman.bash: line 148: shasum: command not found.

Environment Azure DevOps pipeline in windows

Write your commands here

curl --silent https://raw.githubusercontent.com/thoughtworks/talisman/master/global_install_scripts/install.bash > /tmp/install_talisman.bash

chmod +x /tmp/install_talisman.bash

ENV TERM=dumb

echo "1\n\n/root" | /bin/bash /tmp/install_talisman.bash image

venkatn087 commented 2 years ago

Dear user, I too faced the same issue in RHEL7, after installing the below package worked fine. Please install the below package and try it.

yum install -y perl-Digest-SHA

nasreenwahab commented 2 years ago

Thanks @venkatn087 for the input. I was able to install but the scan is failing with out of memory error. I am using the 1.28 version in windows. Any help around this will be helpful.