build: add lint target
ober
a77f6a093f1410f46d7e7d36a0c8b3f75826e75f
--- a/Makefile +++ b/Makefile @@ -27,7 +27,7 @@ DIST_DIR ?= $(CURDIR)/dist RELEASE_EVIDENCE_DIR ?= $(DIST_DIR)/release-evidence TARGET_EVIDENCE_DIR ?= $(DIST_DIR)/target-evidence -.PHONY: all build binary run test native-runtime security verify sbom reproducibility-report target-evidence target-evidence-selftest release-evidence install clean ensure-jerboa-tools +.PHONY: all build binary run test native-runtime security verify sbom reproducibility-report target-evidence target-evidence-selftest release-evidence install clean ensure-jerboa-tools lint all: binary @@ -71,6 +71,8 @@ test: native-runtime @command -v python3 >/dev/null 2>&1 || { echo "ERROR: python3 is required for transport tests."; exit 1; } $(DYLD) $(DEV_NATIVE) JERBUILD="$(JERBUILD)" JERBOA_LIBDIRS="$(CURDIR)/lib:$(JH)/lib" python3 test/test-s3-transport.py +lint: security + security: @set -eu; \ pattern="(BEGIN (RSA|OPENSSH|EC|DSA|PRIVATE) KEY|ghp_[A-Za-z0-9_]{20,}|github_pat_[A-Za-z0-9_]{20,}|sk-(ant-api03|proj|svcacct)-[A-Za-z0-9_-]{30,}|AKIA[0-9A-Z]{16}|ASIA[0-9A-Z]{16})"; \