There was an error while loading. Please reload this page.
1 parent 049f55d commit ff29eecCopy full SHA for ff29eec
1 file changed
common.mk
@@ -74,6 +74,11 @@ OSV_SCANNER_CONFIG ?= ./.osv-scanner.toml
74
scan: $(OSV_SCANNER) ## scan for vulnerabilities
75
$(OSV_SCANNER) scan --config $(OSV_SCANNER_CONFIG) -r .
76
77
+.PHONY: addlicense
78
+addlicense: $(ADDLICENSE) ## Add License headers containing of `license` and `comment` to files matched by `pattern`.
79
+ @test -n "$(license)" && test -n "$(comment)" && test -n "$(pattern)" \
80
+ git ls-files '$(pattern)' | xargs -r $(ADDLICENSE) -c '$(comment)' -l '$(license)' -s=only
81
+
82
# Local dev environment
83
.PHONY: setup-local-cluster
84
setup-local-cluster: ## Set up a Kind cluster for local development if it does not exist
0 commit comments