代码拉取完成,页面将自动刷新
SHELL := /usr/bin/env bash
include $(wildcard makefiles/*)
.PHONY: check-trufflehog
check-trufflehog:
@if ! which trufflehog > /dev/null 2>&1; then \
echo "TruffleHog is not installed."; \
echo "MacOS users can install it with:"; \
echo " brew install trufflehog"; \
echo ""; \
echo "Linux users can install it with:"; \
echo " curl -sSfL https://raw.githubusercontent.com/trufflesecurity/trufflehog/main/scripts/install.sh | sh -s -- -b /usr/local/bin"; \
echo ""; \
echo "For more details, go to https://github.com/trufflesecurity/trufflehog"; \
exit 1; \
fi
.PHONY: setup-pre-commit
setup-pre-commit:
@if [ ! -f .pre-commit-config.yaml ]; then \
echo ".pre-commit-config.yaml not found. Copying template..."; \
cp .github/config/.pre-commit-config-template.yaml .pre-commit-config.yaml; \
echo ".pre-commit-config.yaml created from template."; \
else \
echo ".pre-commit-config.yaml already exists."; \
fi
.PHONY: init
init: setup-pre-commit check-trufflehog
pip install pre-commit
pre-commit install
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。